aboutsummaryrefslogtreecommitdiff
path: root/lib/config-win32.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-12-17 21:19:42 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-12-17 21:19:42 +0000
commitbcd7d03b3b814b0fc3e052819ed7d84946e846e5 (patch)
tree3bd7b2bb3921c81e7454719e02de0a1ba2b3d05a /lib/config-win32.h
parent82c9379b6ce4c041045b03ef144ce578976543a3 (diff)
Mateusz Loskot pointed out that VC++ 9.0 (2008) has the pollfd struct and
defines in the SDK somehow differently so we have to add a define to the config-win32.h file to make select.h compile nicely.
Diffstat (limited to 'lib/config-win32.h')
-rw-r--r--lib/config-win32.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/config-win32.h b/lib/config-win32.h
index 97db859b9..144ffe97f 100644
--- a/lib/config-win32.h
+++ b/lib/config-win32.h
@@ -353,6 +353,14 @@
#define _CRT_NONSTDC_NO_DEPRECATE 1
#endif
+/* Define to make select.h work fine on VC++ 9.0 (2008) */
+#if defined(_MSC_VER) && (_MSC_VER >= 1500)
+/* The poll struct and associated defines are present in the Windows SDK v6.0
+ that comes with this version... */
+#define HAVE_STRUCT_POLLFD 1
+#endif
+
+
/* ---------------------------------------------------------------- */
/* LDAP SUPPORT */
/* ---------------------------------------------------------------- */