summaryrefslogtreecommitdiff
path: root/ext/Socket
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-07-04 23:26:01 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-07-04 23:26:01 +0000
commit86959918b69bd7566746d776574341f410f68755 (patch)
tree6780588fce4cf2ffb2d134d8468905a555bb63f9 /ext/Socket
parentf6b3007c38a92f48d086a19ea8682dd935b6d4ee (diff)
downloadperl-86959918b69bd7566746d776574341f410f68755.tar.gz
Miscellaneus AIX fixes + SOCKS support.
p4raw-id: //depot/cfgperl@3578
Diffstat (limited to 'ext/Socket')
-rw-r--r--ext/Socket/Socket.xs7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/Socket/Socket.xs b/ext/Socket/Socket.xs
index 336e6c451a..016a4616e1 100644
--- a/ext/Socket/Socket.xs
+++ b/ext/Socket/Socket.xs
@@ -7,6 +7,9 @@
# include <sys/types.h>
# endif
# include <sys/socket.h>
+# if (defined(SOCKS) || defined(USE_SOCKS)) && defined(I_SOCKS)
+# include <socks.h>
+# endif
# ifdef MPE
# define PF_INET AF_INET
# define PF_UNIX AF_UNIX
@@ -18,7 +21,9 @@
# ifdef I_NETINET_IN
# include <netinet/in.h>
# endif
-# include <netdb.h>
+# ifdef I_NETDB
+# include <netdb.h>
+# endif
# ifdef I_ARPA_INET
# include <arpa/inet.h>
# endif