[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: include <sys/types.h> without check
From: |
Eric Blake |
Subject: |
Re: include <sys/types.h> without check |
Date: |
Wed, 18 May 2011 09:22:40 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.10 |
On 05/18/2011 09:18 AM, Eric Blake wrote:
> On 05/18/2011 07:37 AM, Sam Steingold wrote:
>> sys_uio.in.h includes <sys/types.h> without #ifdef HAVE_SYS_TYPES_H.
>> can this file be assumed to be present on all platforms including mingw?
>
> gnulib/doc/posix-headers/sys_types.texi does not list any platform where
> it is missing. Yes, you can assume this file is present everywhere.
Also from gnulib's README:
Because we assume a freestanding C89 compiler, Gnulib code can include
<float.h>, <limits.h>, <stdarg.h>, and <stddef.h> unconditionally. It
can also assume the existence of <ctime.h>, <errno.h>, <fcntl.h>,
<locale.h>, <signal.h>, <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.
Similarly, many modules include <sys/types.h> even though it's not even
in C99; that's OK since <sys/types.h> has been around nearly forever.
--
Eric Blake address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature