summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-04-01 02:49:14 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-04-01 02:49:14 +0000
commitcf5b25d12ba32b18993b2dbe63db510b51e3337c (patch)
tree4cc800864d61eef5b58edbeccd0ac597d0446f3e /util.c
parent1143a4cbefd367ba93f8b1ec14077e0977b39e2a (diff)
downloadperl-cf5b25d12ba32b18993b2dbe63db510b51e3337c.tar.gz
DJGPP tweaks from Laszlo.
p4raw-id: //depot/perl@15650
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/util.c b/util.c
index 7843507f50..d4a775b424 100644
--- a/util.c
+++ b/util.c
@@ -4299,7 +4299,11 @@ Perl_my_socketpair (int family, int type, int protocol, int fd[2]) {
* to the my_socketpair in global.sym. */
int
Perl_my_socketpair (int family, int type, int protocol, int fd[2]) {
+#ifdef HAS_SOCKETPAIR
return socketpair(family, type, protocol, fd);
+#else
+ return -1;
+#endif
}
#endif