include sys/types.h without check
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? -- Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 11.0.60900031 http://palestinefacts.org http://mideasttruth.com http://pmw.org.il http://honestreporting.com http://thereligionofpeace.com http://truepeace.org MS Windows: error: the operation completed successfully.
Re: include sys/types.h without check
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. -- Eric Blake ebl...@redhat.com+1-801-349-2682 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature
Re: include sys/types.h without check
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 ebl...@redhat.com+1-801-349-2682 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature