Marko Mikulicic wrote: > Explanation: on macosx off_t is 8 bytes long. It pushes on the stack > 8 bytes, and since it is a big endian machine when the > "buffer_add_va" access it as 4 byte wide data it accesses the most > significant 4 bytes with are 0 for when the offset is under > 4*10^9...
Ok, I see.. > obviously we have to find correct the problem at the root, that is > macro.h > > /* Format string for off_t > */ > #if _FILE_OFFSET_BITS == 64 > # define FMT_OFFSET "%llu" > # define CST_OFFSET unsigned long long > #else > # define FMT_OFFSET "%lu" > # define CST_OFFSET unsigned long > #endif > > It should define _FILE_OFFSET_BITS on the macosx platform > > in config.h I see > /* Number of bits in a file offset, on hosts where this is settable. */ > /* #undef _FILE_OFFSET_BITS */ > someone knowns well the autoconf/automake I think I do, but it doesn't make sense to me.. configure.in uses AC_SYS_LARGEFILE, which is a function that defines _FILE_OFFSET_BITS and add a compilation flag in order to activate the large file support. Could you please check what is detecting AC_SYS_LARGEFILE? I think the problem is in the configure stuff, the code is, AFAIK, alright. -- Greetings, alo. http://www.alobbs.com _______________________________________________ Cherokee mailing list [email protected] http://www.alobbs.com/cgi-bin/mailman/listinfo/cherokee
