changeset 6330:ba742d376820

Don't protect sys/types.h with HAVE_SYS_TYPES_H, we assume all systems have it, suggested by Jim Meyering <jim@meyering.net>.
author Simon Josefsson <simon@josefsson.org>
date Wed, 05 Oct 2005 07:39:50 +0000
parents ffad934ef3bd
children b52738f08311
files lib/ChangeLog lib/getaddrinfo.h
diffstat 2 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,9 @@
+2005-10-05  Simon Josefsson  <jas@extundo.com>
+
+	* getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
+	we assume all systems have it, suggested by Jim Meyering
+	<jim@meyering.net>.
+
 2005-10-04  Bruno Haible  <bruno@clisp.org>
 
 	* verify.h (verify_true): Provide alternative definition for C++.
--- a/lib/getaddrinfo.h
+++ b/lib/getaddrinfo.h
@@ -19,14 +19,12 @@
 #ifndef GETADDRINFO_H
 # define GETADDRINFO_H
 
-/* Get all getaddrinfo related declarations, if available.  */
-# ifdef HAVE_SYS_TYPES_H
 /* sys/socket.h in i386-unknown-freebsd4.10 and
    powerpc-apple-darwin5.5 require sys/types.h, so include it first.
    Then we'll also get 'socklen_t' and 'struct sockaddr' which are
    used below. */
-#  include <sys/types.h>
-# endif
+# include <sys/types.h>
+/* Get all getaddrinfo related declarations, if available.  */
 # ifdef HAVE_SYS_SOCKET_H
 #  include <sys/socket.h>
 # endif