This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
socketpair emulation
[perl5.git] / proto.h
diff --git a/proto.h b/proto.h
index b6ed287..bb20b20 100644 (file)
--- a/proto.h
+++ b/proto.h
@@ -1331,6 +1331,9 @@ PERL_CALLCONV STRLEN      Perl_sv_utf8_upgrade_flags(pTHX_ SV *sv, I32 flags);
 PERL_CALLCONV char*    Perl_sv_pvn_force_flags(pTHX_ SV* sv, STRLEN* lp, I32 flags);
 PERL_CALLCONV char*    Perl_sv_2pv_flags(pTHX_ SV* sv, STRLEN* lp, I32 flags);
 PERL_CALLCONV char*    Perl_my_atof2(pTHX_ const char *s, NV* value);
+#if !defined(HAS_SOCKETPAIR) && defined(HAS_SOCKET)
+PERL_CALLCONV int      Perl_my_socketpair(pTHX_ int family, int type, int protocol, int fd[2]);
+#endif
 
 END_EXTERN_C