summaryrefslogtreecommitdiff
path: root/win32/win32sck.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/win32sck.c')
-rw-r--r--win32/win32sck.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/win32/win32sck.c b/win32/win32sck.c
index bcf180ad62..74af5d7756 100644
--- a/win32/win32sck.c
+++ b/win32/win32sck.c
@@ -28,6 +28,7 @@ extern CPerlObj* pPerl;
#include "XSUB.h"
#endif
+#include "Win32iop.h"
#include <sys/socket.h>
#include <fcntl.h>
#include <sys/stat.h>
@@ -36,7 +37,7 @@ extern CPerlObj* pPerl;
/* thanks to Beverly Brown (beverly@datacube.com) */
#ifdef USE_SOCKETS_AS_HANDLES
-# define OPEN_SOCKET(x) _open_osfhandle(x,O_RDWR|O_BINARY)
+# define OPEN_SOCKET(x) win32_open_osfhandle(x,O_RDWR|O_BINARY)
# define TO_SOCKET(x) _get_osfhandle(x)
#else
# define OPEN_SOCKET(x) (x)