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: Andries . Brouwer
Subject: Re: sys/time.h: no more -ansi timercmp ?
Date: Mon, 25 Jun 2001 14:14:03 +0200 (MET DST)

    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).

Andries



reply via email to

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