[HAVE_SYS_SOCKET_H]: Include <sys/socket.h> for definition of AF_INET
authorJim Meyering <jim@meyering.net>
Fri, 23 Feb 1996 16:14:27 +0000 (16:14 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 23 Feb 1996 16:14:27 +0000 (16:14 +0000)
on at least SunOS 4.

lib/canon-host.c

index f302f5736cef675bd9dca2e59495a00d2edb4a4b..c70f4aa03a49835149687bfccc9899beb1d07ef3 100644 (file)
@@ -31,6 +31,9 @@
 #ifdef HAVE_NETDB_H
 #include <netdb.h>
 #endif
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
 
 #ifdef HAVE_NETINET_IN_H
 #include <netinet/in.h>