[Top][All Lists]
[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 09:30:01 +0200 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.1 (Cuyahoga Valley) |
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).
> Could the removal be a mistake?
No - it's a way to stricter standard conformance.
> If its intentional, how should I have figured that out by myself? :)
Did you look at /usr/include/sys/time.h at all?
Andreas
--
Andreas Jaeger
SuSE Labs address@hidden
private address@hidden
http://www.suse.de/~aj