[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 f302f57..c70f4aa 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>