On Mon, Dec 23, 2002 at 12:06:26AM -0800, Paul Eggert wrote: > > Date: Sun, 22 Dec 2002 22:21:20 -0600 > > From: Albert Chin <[EMAIL PROTECTED]> > > > > Under, HP-UX 10.20, #include <limits.h> brings in <sys/time.h> which > > defines a prototype for gettimeofday(). > > How bizarre. What other functions (besides gettimeofday) does > <limits.h> define?
*lots*. > Is there any symbol that we can define before including <limits.h>, > so that <limits.h> does not declare these undesirable prototypes? > For example, suppose we "#define _POSIX_C_SOURCE 200112L" first. > Does that make the problem go away? #define _SYS_STDSYMS_INCLUDED #include <limits.h> >From /usr/include/limits.h (verified on 10.20, 11.00, 11i): #ifndef _SYS_STDSYMS_INCLUDED # include <sys/stdsyms.h> #endif /* _SYS_STDSYMS_INCLUDED */ > Does the following patch fix things? Works now. -- albert chin ([EMAIL PROTECTED])