bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

getaddrinfo.h: HAVE_SYS_TYPES_H needed?


From: Jim Meyering
Subject: getaddrinfo.h: HAVE_SYS_TYPES_H needed?
Date: Wed, 05 Oct 2005 08:56:30 +0200

Hi Simon,

I noticed that getaddrinfo.h guards the inclusion of <sys/types.h>
with an #ifdef HAVE_SYS_TYPES_H.
Do you know of a system that lacks <sys/types.h>?
I don't see any other uses of HAVE_SYS_TYPES_H in gnulib.

How about HAVE_SYS_SOCKET_H?
At least poll.c uses <sys/socket.h> without the conditional.

It's best to avoid the conditionals, when possible.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]