lib/timer.c needs sys/time.h included under FreeBSD ...
The Hermit Hacker
scrappy at hub.org
Wed Feb 7 14:20:25 UTC 2001
On Wed, 7 Feb 2001, Fabien Tassin wrote:
> According to The Hermit Hacker:
> >
> > > According to The Hermit Hacker:
> > > >
> > > > gcc -I/usr/local/include/db3 -I../include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c -fPIC -DPIC timer.c -o .libs/timer.lo
> > > > timer.c: In function `get_time':
> > > > timer.c:69: storage size of `tv' isn't known
> > > > timer.c:78: storage size of `base' isn't known
> > >
> > > you need to include <sys/time.h>.
> >
> > ya, that's what I said in the Suject :)
>
> oops.. I'm tired :)
>
> > Its the '9' error I'm getting in libutil.h that has me stumped :(
>
> no idea.. could you try the same gcc command line with -E added to see
> the output of the preprocessor ? I can't be more precise because I'm
> not currently able to sync my source tree (patches pending) but I guess
> it will be some name collisions.
okay, since its something I've never used before, what do I do with the
output of the -E? :)
my output has 23 213 lines in it, most of it is just blank lines ... d'oh,
not bad, just found it ... neat :)
in libutil.h, with -E, I'm getting:
int _secure_path (const char * 9 , uid_t _uid, gid_t _gid) ;
where it starts with:
int _secure_path __P((const char *_path, uid_t _uid, gid_t _gid));
so something is converting _path -> 9?
More information about the inn-workers
mailing list