the solution is trivial. configure.in already contains:
AC_CHECK_SIZEOF(off_t) which produces: #define SIZEOF_OFF_T 8 we can simply use this: --- configure-old.in 2005-10-26 16:02:48.000000000 +0200 +++ configure.in 2005-10-26 16:03:16.000000000 +0200 @@ -196,6 +196,7 @@ AC_CHECK_TYPE(wchar_t, unsigned short) AC_CHECK_SIZEOF(unsigned long) +AC_CHECK_SIZEOF(unsigned long long) AC_CHECK_SIZEOF(unsigned int) AC_CHECK_SIZEOF(off_t) --- cherokee/macros-old.h 2005-10-26 15:55:41.000000000 +0200 +++ cherokee/macros.h 2005-10-26 16:02:31.000000000 +0200 @@ -216,12 +216,14 @@ /* Format string for off_t */ -#if _FILE_OFFSET_BITS == 64 +#if SIZEOF_OFF_T == SIZEOF_UNSIGNED_LONG_LONG # define FMT_OFFSET "%llu" # define CST_OFFSET unsigned long long -#else +#elif SIZEOF_OFF_T == SIZEOF_UNISGNED_LONG # define FMT_OFFSET "%lu" # define CST_OFFSET unsigned long +#else +# error unknown size of off_t #endif _______________________________________________ Cherokee mailing list [email protected] http://www.alobbs.com/cgi-bin/mailman/listinfo/cherokee
