Remove HAVE_SYS_SOCKET_H test too, to see if
authorSimon Josefsson <simon@josefsson.org>
Wed, 5 Oct 2005 07:49:16 +0000 (07:49 +0000)
committerSimon Josefsson <simon@josefsson.org>
Wed, 5 Oct 2005 07:49:16 +0000 (07:49 +0000)
any systems lack sys/socket.h; mingw32 is known to lack it, but we
don't support it yet anyway.

lib/ChangeLog
lib/getaddrinfo.h

index f8e08a992ae2602012f32c930814a8a99bb330ea..b1345b02fdb63f4ce548eac2d313539475e0c5f0 100644 (file)
@@ -2,7 +2,9 @@
 
        * 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>.
+       <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
+       any systems lack sys/socket.h; mingw32 is known to lack it, but we
+       don't support it yet anyway.
 
 2005-10-04  Bruno Haible  <bruno@clisp.org>
 
index 9f47447d30a26179578f9b0d1ce555d353efb521..ca096b8de5b5b47540a873e304830bf918fadd8b 100644 (file)
@@ -25,9 +25,7 @@
    used below. */
 # include <sys/types.h>
 /* Get all getaddrinfo related declarations, if available.  */
-# ifdef HAVE_SYS_SOCKET_H
-#  include <sys/socket.h>
-# endif
+# include <sys/socket.h>
 # ifdef HAVE_NETDB_H
 #  include <netdb.h>
 # endif