summaryrefslogtreecommitdiff
path: root/ext/Socket
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-03-29 21:18:32 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-03-29 21:18:32 +0000
commit3b8fd1d50fa2d1e7d187a495bdbd1c1584f6a531 (patch)
tree0096754830503bb76c320c7d76941b8cea0ff67f /ext/Socket
parent05671074223592cab8892e565a2b59d3f032bba8 (diff)
downloadperl-3b8fd1d50fa2d1e7d187a495bdbd1c1584f6a531.tar.gz
IRIX 5.3 can have PF_LINK defined to be AF_LINK but
not defined AF_LINK. p4raw-id: //depot/perl@19082
Diffstat (limited to 'ext/Socket')
-rw-r--r--ext/Socket/Socket.xs3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/Socket/Socket.xs b/ext/Socket/Socket.xs
index d844775e4f..c20f5de405 100644
--- a/ext/Socket/Socket.xs
+++ b/ext/Socket/Socket.xs
@@ -25,6 +25,9 @@
# if defined(NeXT) || defined(__NeXT__)
# include <netinet/in_systm.h>
# endif
+# if defined(__sgi) && !defined(AF_LINK) && defined(PF_LINK) && PF_LINK == AF_LNK
+# undef PF_LINK
+# endif
# ifdef I_NETINET_IN
# include <netinet/in.h>
# endif