summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-03-22 20:34:28 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-03-22 20:34:28 +0000
commit85ca448a836bf0ba175d8874ee540094ff909f93 (patch)
tree86b6cebd52d43163073c1b5f8f08b8ab9b5abff5 /util.c
parent1f56d61a5b03f36bb86c918d42e906ba72608431 (diff)
downloadperl-85ca448a836bf0ba175d8874ee540094ff909f93.tar.gz
EPOC update from Olaf Flebbe.
p4raw-id: //depot/perl@15426
Diffstat (limited to 'util.c')
-rw-r--r--util.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/util.c b/util.c
index 828ddd4289..cd13986a6b 100644
--- a/util.c
+++ b/util.c
@@ -2192,7 +2192,7 @@ Perl_my_popen(pTHX_ char *cmd, char *mode)
return PerlIO_fdopen(p[This], mode);
}
#else
-#if defined(atarist)
+#if defined(atarist) || defined(EPOC)
FILE *popen();
PerlIO *
Perl_my_popen(pTHX_ char *cmd, char *mode)
@@ -2577,7 +2577,7 @@ Perl_pidgone(pTHX_ Pid_t pid, int status)
return;
}
-#if defined(atarist) || defined(OS2)
+#if defined(atarist) || defined(OS2) || defined(EPOC)
int pclose();
#ifdef HAS_FORK
int /* Cannot prototype with I32
@@ -4199,7 +4199,9 @@ S_socketpair_udp (int fd[2]) {
return -1;
}
}
+#endif /* EMULATE_SOCKETPAIR_UDP */
+#if !defined(HAS_SOCKETPAIR) && defined(HAS_SOCKET) && defined(AF_INET) && defined(PF_INET)
int
Perl_my_socketpair (int family, int type, int protocol, int fd[2]) {
/* Stevens says that family must be AF_LOCAL, protocol 0.
@@ -4278,7 +4280,7 @@ Perl_my_socketpair (int family, int type, int protocol, int fd[2]) {
return 0;
abort_tidy_up_and_fail:
- errno = ECONNABORTED; /* I hope this is portable and appropriate. */
+ errno = ECONNABORTED; /* I hope this is portable and appropriate. */
tidy_up_and_fail:
{
int save_errno = errno;
@@ -4292,8 +4294,7 @@ Perl_my_socketpair (int family, int type, int protocol, int fd[2]) {
return -1;
}
}
-#endif /* !defined(HAS_SOCKETPAIR) && defined(HAS_SOCKET) */
-#ifdef HAS_SOCKETPAIR
+#else
/* In any case have a stub so that there's code corresponding
* to the my_socketpair in global.sym. */
int