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 f8e08a9..b1345b0 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 9f47447..ca096b8 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