cURL / Mailing Lists / curl-library / Single Mail


Multiple definitions of pollfd struct in 7.17.1 with Visual Studio 2008 Beta

From: Vikram Saxena <>
Date: Thu, 8 Nov 2007 00:57:12 -0500

I am compiling libcurl using the Visual Studio 2008 Beta and libcurl
7.17.1source code download.

I am getting a conflict due to multiple definitions of the pollfd struct. It
is already defined in the winsock2.h file which was being included via
setup.h file.

 I changed line 49 of select.h from
*#ifndef HAVE_SYS_POLL_H *
*if !defined(HAVE_SYS_POLL_H) && ! defined(HAVE_WINSOCK2_H) *
This seems to have fixed the problem. The variable HAVE_SINSOCK2_H is
defined in the config-win32.h file.

Please do confirm; I am brand new to this space.

Received on 2007-11-08