lib/timer.c needs sys/time.h included under FreeBSD ...
Russ Allbery
rra at stanford.edu
Wed Feb 7 20:55:09 UTC 2001
Katsuhiro Kondou <kondou at nec.co.jp> writes:
> That's defined in innd.h.
> #define _path 9
> I'm not sure how renamed. _PATH is safe?
We're running into problems with both of those because C reserves anything
beginning with an underscore and a lower-case letter in file scope (so the
FreeBSD header files are right to use it this way since a function
prototype doesn't have file scope and we're wrong because #define does).
An underscore and an uppercase letter is actually worse; the C standard
reserves all such identifiers universally for the implementation.
We really want to switch to something like HDR_PATH or H_PATH or something
like that (the latter may conflict with include header guards, though).
--
Russ Allbery (rra at stanford.edu) <http://www.eyrie.org/~eagle/>
More information about the inn-workers
mailing list