Re: cdb on Mac OS X: problem with uint32?

Malte Tancred <[email protected]> Tue, 6 May 2003 00:38:02 +0200
Newsgroups gmane.org.djb.miscellaneous
Message-ID <[email protected]>
Forget my previous babbling. As far as I can tell the only
thing needed to get cdb working on Mac OS X is including
unistd.h in seek_cur.c:

   #include <sys/types.h>
   #include <unistd.h>
   #include "seek.h"

   #define CUR 1 /* sigh */

   seek_pos seek_cur(int fd)
   { return lseek(fd,(off_t) 0,CUR); }

As lseek() is used in seek_set.c as well, perhaps unistd.h
should be included there as well. It's not something being
caught by the test suite though.

Running the rts test suite now produce only one difference:

   202c202
   < cdbmake: fatal: unable to create test.tmp: out of memory
   ---
   > cdbmake: fatal: unable to read input: bad format

This is a problem with softlimit on Mac OS X and not related
to the cdb package.

Cheerio,
Malte