[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: do I need "ifdef HAVE_UNISTD_H" if I import unistd?
From: |
Sam Steingold |
Subject: |
Re: do I need "ifdef HAVE_UNISTD_H" if I import unistd? |
Date: |
Mon, 16 May 2011 16:10:11 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> * Eric Blake <address@hidden> [2011-05-16 13:56:46 -0600]:
>
> On 05/16/2011 01:53 PM, Sam Steingold wrote:
>> DIUC that if I include the sys_time & unistd modules, I can write
>>
>> #include <unistd.h>
>> #include <sys/time.h>
>>
>> instead of
>>
>> #ifdef HAVE_SYS_TIME_H
>> #include <sys/time.h>
>> #endif
>> #ifdef HAVE_UNISTD_H
>> #include <unistd.h>
>> #endif
>>
>> ??
>>
>> the same question for all the other headers...
>
> Absolutely! In fact, the maintainer-mode module includes the
> sc_prohibit_always_true_header_tests to help you check for files where
> you can unconditionally include headers guaranteed by gnulib replacements.
there is no maintainer-mode in gnulib/modules.
how do I use it?
thanks!
--
Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X
11.0.60900031
http://openvotingconsortium.org http://honestreporting.com
http://camera.org http://thereligionofpeace.com http://truepeace.org
Genius is immortal, but morons live longer.
- do I need "ifdef HAVE_UNISTD_H" if I import unistd?, Sam Steingold, 2011/05/16
- Re: do I need "ifdef HAVE_UNISTD_H" if I import unistd?, Eric Blake, 2011/05/16
- Re: do I need "ifdef HAVE_UNISTD_H" if I import unistd?,
Sam Steingold <=
- Re: do I need "ifdef HAVE_UNISTD_H" if I import unistd?, Eric Blake, 2011/05/16
- Re: do I need "ifdef HAVE_UNISTD_H" if I import unistd?, Sam Steingold, 2011/05/16
- Re: do I need "ifdef HAVE_UNISTD_H" if I import unistd?, Eric Blake, 2011/05/16
- Re: do I need "ifdef HAVE_UNISTD_H" if I import unistd?, Karl Berry, 2011/05/16
- Re: do I need "ifdef HAVE_UNISTD_H" if I import unistd?, Eric Blake, 2011/05/16
- Re: do I need "ifdef HAVE_UNISTD_H" if I import unistd?, Sam Steingold, 2011/05/16
- Re: do I need "ifdef HAVE_UNISTD_H" if I import unistd?, Eric Blake, 2011/05/16
- Re: do I need "ifdef HAVE_UNISTD_H" if I import unistd?, Sam Steingold, 2011/05/16
- Re: do I need "ifdef HAVE_UNISTD_H" if I import unistd?, Eric Blake, 2011/05/16
- Re: do I need "ifdef HAVE_UNISTD_H" if I import unistd?, Sam Steingold, 2011/05/16