bug-glibc
[Top][All Lists]
Advanced

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

Re: sys/time.h: no more -ansi timercmp ?


From: Andreas Jaeger
Subject: Re: sys/time.h: no more -ansi timercmp ?
Date: 25 Jun 2001 18:21:27 +0200
User-agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.1 (Cuyahoga Valley)

address@hidden writes:

>     From address@hidden Mon Jun 25 09:30:14 2001
> 
>     Dave Morse <address@hidden> writes:
> 
>    > If gcc is invoked with "-ansi" on a file that includes <sys/time.h>, it
>    > doesn't pick up timercmp, but it does pick up gettimeofday.  
>    > 
>    > In glibc 2.0 (or whatever came on Red Hat 6.2), it did pick it up.
>    > In glibc 2.1 (or whatever came on Woody), its gone.
> 
>     Add the appropriate feature test macros (details are in the libc
>     manual), e.g. _BSD_SOURCE.
> 
>    > The man page for gettimeofday hasn't changed.
> 
>     Then tell it the man page maintainer (CC'ed).
> 
> OK. Now gettimeofday.2 says:
> 
> NOTE
>        The  prototype for settimeofday is (since glibc2.2.2) only
>        available if _BSD_SOURCE is defined (either explicitly, or
>        implicitly,  by  not  defining  _POSIX_SOURCE or compiling
>        with the -ansi flag).
> 

Also the macros timerisset etc. have the same restrictions.

Thanks Andries,

Andreas
-- 
 Andreas Jaeger
  SuSE Labs address@hidden
   private address@hidden
    http://www.suse.de/~aj



reply via email to

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