cURL / Mailing Lists / curl-users / Single Mail

curl-users

[ curl-Bugs-560904 ] select.h including

From: <noreply_at_sourceforge.net>
Date: Sun, 26 May 2002 20:08:34 -0700

Bugs item #560904, was opened at 2002-05-26 20:08
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=100976&aid=560904&group_id=976

Category: compile or build problem
Group: portability problem
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: select.h including

Initial Comment:
when compiling on FreeBSD (4.1, 4.4) 7.9.7 version of
libcurl following occurs:
-------------
source='writeout.c' object='writeout.o' libtool=no
depfile='.deps/writeout.Po'
tmpdepfile='.deps/writeout.TPo' depmode=gcc /bin/sh
../depcomp gcc -DHAVE_CONFIG_H -I../include -I../src
-I../src -g -O2 -c `test -f writeout.c || echo
'./'`writeout.c
In file included from /usr/include/sys/select.h:40,
                 from writeout.c:30:
/usr/include/sys/event.h:51: syntax error before
`uintptr_t'
/usr/include/sys/event.h:53: syntax error before
`u_short'
In file included from writeout.c:30:
/usr/include/sys/select.h:47: syntax error before
`pid_t'
*** Error code 1
 
Stop in /usr/home/builder/curl_upgrade/curl-7.9.7/src.
*** Error code 1
 
Stop in /usr/home/builder/curl_upgrade/curl-7.9.7/src.
*** Error code 1
 
Stop in /usr/home/builder/curl_upgrade/curl-7.9.7.
-------------

the trouble strings in writeout.c is:
-------------
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
-------------

it seems, that it is wrong to include this file
directly
on FreeBSD.

to solve the problem, i added following string
before this include:
---------------
#include <sys/types.h>
---------------

but this thing looks like a hotfix...

----------------------------------------------------------------------

You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=100976&aid=560904&group_id=976

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
Received on 2002-05-27