Don't protect sys/types.h with HAVE_SYS_TYPES_H,
authorSimon Josefsson <simon@josefsson.org>
Wed, 5 Oct 2005 07:39:50 +0000 (07:39 +0000)
committerSimon Josefsson <simon@josefsson.org>
Wed, 5 Oct 2005 07:39:50 +0000 (07:39 +0000)
we assume all systems have it, suggested by Jim Meyering
<jim@meyering.net>.

lib/ChangeLog
lib/getaddrinfo.h

index c490d5bf46749738afe6a21e6aba6ef81e4bd694..f8e08a992ae2602012f32c930814a8a99bb330ea 100644 (file)
@@ -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++.
index 01d681f18808e7c1849d21a2b2df6362f7258943..9f47447d30a26179578f9b0d1ce555d353efb521 100644 (file)
 #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