autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HP-UX 10.20 breakage in 2.57


From: Albert Chin
Subject: Re: HP-UX 10.20 breakage in 2.57
Date: Mon, 23 Dec 2002 08:48:46 -0600
User-agent: Mutt/1.4i

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 <address@hidden>
> > 
> > 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 (address@hidden)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]