Dont bother including <sys/socket.h>, we dont use anything from there
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 23 Dec 2009 11:36:29 +0000 (13:36 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 23 Dec 2009 11:36:29 +0000 (13:36 +0200)
configure.ac
system.h

index a81e6fc..d66c84f 100644 (file)
@@ -379,7 +379,7 @@ AC_CHECK_HEADERS(locale.h)
 AC_CHECK_HEADERS(limits.h)
 AC_CHECK_HEADERS(fcntl.h getopt.h memory.h netdb.h pwd.h utime.h)
 
-AC_CHECK_HEADERS(sys/ipc.h sys/socket.h sys/select.h)
+AC_CHECK_HEADERS(sys/ipc.h sys/select.h)
 AC_CHECK_HEADERS(sys/types.h sys/stdtypes.h)
 AC_CHECK_HEADERS(sys/mman.h sys/utsname.h sys/wait.h)
 
index 7c7d403..25573b9 100644 (file)
--- a/system.h
+++ b/system.h
@@ -304,11 +304,6 @@ extern int setenv(const char *name, const char *value, int replace);
 extern void unsetenv(const char *name);
 #endif
 
-#if HAVE_SYS_SOCKET_H
-#include <sys/types.h>
-#include <sys/socket.h>
-#endif
-
 #if HAVE_POLL_H
 #include <poll.h>
 #else