Gmane
Favicon
From: <cvs <at> labb.contactor.se>
Subject: bagder: curl/lib config-win32.h,1.55,1.56
Newsgroups: gmane.comp.web.curl.cvs
Date: 2007-12-17 21:19:45 GMT (50 weeks, 2 days, 6 hours and 39 minutes ago)
Update of /cvsroot/curl/curl/lib
In directory labb:/tmp/cvs-serv29662/lib

Modified Files:
	config-win32.h 
Log Message:
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.

Index: config-win32.h
===================================================================
RCS file: /cvsroot/curl/curl/lib/config-win32.h,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- config-win32.h	7 Nov 2007 18:18:43 -0000	1.55
+++ config-win32.h	17 Dec 2007 21:19:43 -0000	1.56
@@ -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                           */
 /* ---------------------------------------------------------------- */