[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: declaring only the functions that are defined
From: |
Paul Eggert |
Subject: |
Re: declaring only the functions that are defined |
Date: |
Thu, 04 Jan 2007 11:12:33 -0800 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
"Bruno Haible" <address@hidden> writes:
>> For the special case of nanosleep, one might want nanosleep declared
>> even if the nanosleep module isn't being used, for the benefit of
>> hosts that define nanosleep but don't declare it.
>
> Huh? If the program uses nanosleep(), it needs the gnulib module,
> for those hosts that don't have the function at all.
I was thinking of programs that use nanosleep only if HAVE_NANOSLEEP,
and which include timespec.h to get the nanosleep declaration.
I don't know of any such programs offhand, but it's plausible.