summaryrefslogtreecommitdiff
path: root/lib/w32sock.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/w32sock.h')
-rw-r--r--lib/w32sock.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/w32sock.h b/lib/w32sock.h
index 28b0f829c..20cb7c3a3 100644
--- a/lib/w32sock.h
+++ b/lib/w32sock.h
@@ -22,9 +22,12 @@
/* Get O_RDWR and O_BINARY. */
#include <fcntl.h>
-/* Get _get_osfhandle() and _open_osfhandle(). */
+/* Get _open_osfhandle(). */
#include <io.h>
+/* Get _get_osfhandle(). */
+#include "msvc-nothrow.h"
+
#define FD_TO_SOCKET(fd) ((SOCKET) _get_osfhandle ((fd)))
#define SOCKET_TO_FD(fh) (_open_osfhandle ((long) (fh), O_RDWR | O_BINARY))