summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-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