IRIX 5.3 can have PF_LINK defined to be AF_LINK but
Jarkko Hietaniemi [Sat, 29 Mar 2003 21:18:32 +0000 (21:18 +0000)]
not defined AF_LINK.

p4raw-id: //depot/perl@19082

ext/Socket/Socket.xs

index d844775..c20f5de 100644 (file)
@@ -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