summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-01-04 20:24:59 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-01-04 20:24:59 +0000
commit48ea76d1a0d7a73dd36de7c610ebe86ecefa20f7 (patch)
tree55230b904e7d16b788a4667ec1f55b4722c825f1 /util.c
parentc406981e00deead8e4a58424b87a96ede9af2f23 (diff)
downloadperl-48ea76d1a0d7a73dd36de7c610ebe86ecefa20f7.tar.gz
If we do have socketpair(), make my_socketpair()
just call the real socketpair(). This way we always have real code behind my_socketpair() and a symbol corresponding to the my_socketpair in global.sym. p4raw-id: //depot/perl@14068
Diffstat (limited to 'util.c')
-rw-r--r--util.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/util.c b/util.c
index a8e7553ae2..6a0ff448a2 100644
--- a/util.c
+++ b/util.c
@@ -4235,3 +4235,12 @@ Perl_my_socketpair (int family, int type, int protocol, int fd[2]) {
}
}
#endif /* !defined(HAS_SOCKETPAIR) && defined(HAS_SOCKET) */
+#ifdef HAS_SOCKETPAIR
+/* In any case have a stub so that there's code corresponding
+ * to the my_socketpair in global.sym. */
+int
+Perl_my_socketpair (int family, int type, int protocol, int fd[2]) {
+ return socketpair(family, type, protocol, fd);
+}
+#endif
+