diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-01-04 20:24:59 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-01-04 20:24:59 +0000 |
commit | 48ea76d1a0d7a73dd36de7c610ebe86ecefa20f7 (patch) | |
tree | 55230b904e7d16b788a4667ec1f55b4722c825f1 /util.c | |
parent | c406981e00deead8e4a58424b87a96ede9af2f23 (diff) | |
download | perl-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.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 + |