[Debburn-changes] r350 - nonameyet/trunk/include
Eduard Bloch
blade at costa.debian.org
Wed Sep 27 09:38:46 UTC 2006
Author: blade
Date: 2006-09-27 09:38:46 +0000 (Wed, 27 Sep 2006)
New Revision: 350
Modified:
nonameyet/trunk/include/CMakeLists.txt
nonameyet/trunk/include/utypes.h
Log:
No point in testing for blksize_t if the result is never used
Modified: nonameyet/trunk/include/CMakeLists.txt
===================================================================
--- nonameyet/trunk/include/CMakeLists.txt 2006-09-27 00:03:45 UTC (rev 349)
+++ nonameyet/trunk/include/CMakeLists.txt 2006-09-27 09:38:46 UTC (rev 350)
@@ -52,19 +52,19 @@
SET(HAVE_INET_NTOA false)
ENDIF (WIN32) # workaround for cygwin
-INCLUDE(CheckCSourceCompiles)
-SET(TESTSRC "
-#include <sys/types.h>
-int main() { return sizeof(blksize_t); }
-")
-CHECK_C_SOURCE_COMPILES("${TESTSRC}" HAVE_NATIVE_BLKSIZE_T)
-IF(HAVE_NATIVE_BLKSIZE_T)
- SET(HAVE_NATIVE_BLKSIZE_T "/* <sys/types.h> provides blksize_t*/")
-ELSE(HAVE_NATIVE_BLKSIZE_T)
- SET(HAVE_NATIVE_BLKSIZE_T "
-#define blksize_t long
-")
-ENDIF(HAVE_NATIVE_BLKSIZE_T)
+##INCLUDE(CheckCSourceCompiles)
+##SET(TESTSRC "
+###include <sys/types.h>
+##int main() { return sizeof(blksize_t); }
+##")
+##CHECK_C_SOURCE_COMPILES("${TESTSRC}" HAVE_NATIVE_BLKSIZE_T)
+##IF(HAVE_NATIVE_BLKSIZE_T)
+## SET(HAVE_NATIVE_BLKSIZE_T "/* <sys/types.h> provides blksize_t*/")
+##ELSE(HAVE_NATIVE_BLKSIZE_T)
+## SET(HAVE_NATIVE_BLKSIZE_T "
+###define blksize_t long
+##")
+##ENDIF(HAVE_NATIVE_BLKSIZE_T)
CONFIGURE_FILE( xconfig.h.in xconfig.h)
Modified: nonameyet/trunk/include/utypes.h
===================================================================
--- nonameyet/trunk/include/utypes.h 2006-09-27 00:03:45 UTC (rev 349)
+++ nonameyet/trunk/include/utypes.h 2006-09-27 09:38:46 UTC (rev 350)
@@ -426,9 +426,6 @@
#define NLINK_T_MIN TYPE_MINVAL(nlink_t)
#define NLINK_T_MAX TYPE_MAXVAL(nlink_t)
-#define BLKSIZE_T_MIN TYPE_MINVAL(blksize_t)
-#define BLKSIZE_T_MAX TYPE_MAXVAL(blksize_t)
-
#define BLKCNT_T_MIN TYPE_MINVAL(blkcnt_t)
#define BLKCNT_T_MAX TYPE_MAXVAL(blkcnt_t)
More information about the Debburn-changes
mailing list