aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/setup.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/setup.h b/src/setup.h
index 6e0f23a15..139b7467f 100644
--- a/src/setup.h
+++ b/src/setup.h
@@ -105,6 +105,23 @@
# endif
#endif
+/*
+ * Define USE_WINSOCK to 2 if we have and use WINSOCK2 API, else
+ * define USE_WINSOCK to 1 if we have and use WINSOCK API, else
+ * undefine USE_WINSOCK.
+ */
+
+#undef USE_WINSOCK
+
+#ifdef HAVE_WINSOCK2_H
+# define USE_WINSOCK 2
+#else
+# ifdef HAVE_WINSOCK_H
+# define USE_WINSOCK 1
+# endif
+#endif
+
+
#include <stdio.h>
#ifdef __TANDEM