anchors fix
[p5sagit/p5-mst-13.2.git] / XSUB.h
diff --git a/XSUB.h b/XSUB.h
index 2bd681c..2d1b8ed 100644 (file)
--- a/XSUB.h
+++ b/XSUB.h
@@ -421,6 +421,7 @@ C<xsubpp>.  See L<perlxs/"The VERSIONCHECK: Keyword">.
 #    define longjmp            PerlProc_longjmp
 #    define signal             PerlProc_signal
 #    define getpid             PerlProc_getpid
+#    define gettimeofday       PerlProc_gettimeofday
 #    define htonl              PerlSock_htonl
 #    define htons              PerlSock_htons
 #    define ntohl              PerlSock_ntohl
@@ -465,6 +466,20 @@ C<xsubpp>.  See L<perlxs/"The VERSIONCHECK: Keyword">.
 #    define socket             PerlSock_socket
 #    define socketpair         PerlSock_socketpair
 #      endif   /* NETWARE && USE_STDIO */
+
+#    ifdef USE_SOCKETS_AS_HANDLES
+#      undef fd_set
+#      undef FD_SET
+#      undef FD_CLR
+#      undef FD_ISSET
+#      undef FD_ZERO
+#      define fd_set           Perl_fd_set
+#      define FD_SET(n,p)      PERL_FD_SET(n,p)
+#      define FD_CLR(n,p)      PERL_FD_CLR(n,p)
+#      define FD_ISSET(n,p)    PERL_FD_ISSET(n,p)
+#      define FD_ZERO(p)       PERL_FD_ZERO(p)
+#    endif     /* USE_SOCKETS_AS_HANDLES */
+
 #  endif  /* NO_XSLOCKS */
 #endif  /* PERL_IMPLICIT_SYS && !PERL_CORE */