summaryrefslogtreecommitdiff
path: root/ext/socket/getnameinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/socket/getnameinfo.c')
-rw-r--r--ext/socket/getnameinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/socket/getnameinfo.c b/ext/socket/getnameinfo.c
index b8a1e31..a1fa5d7 100644
--- a/ext/socket/getnameinfo.c
+++ b/ext/socket/getnameinfo.c
@@ -36,7 +36,7 @@
#include "config.h"
#include <sys/types.h>
-#ifndef NT
+#ifndef _WIN32
#if defined(__BEOS__)
# include <net/socket.h>
#else
@@ -54,7 +54,7 @@
#include <resolv.h>
#endif
#endif
-#ifdef NT
+#ifdef _WIN32
#include <winsock2.h>
#include <stdio.h>
#define snprintf _snprintf