cURL / Mailing Lists / curl-users / Single Mail

curl-users

[ curl-Bugs-556869 ] src/writeout.c needs sys/types.h

From: <noreply_at_sourceforge.net>
Date: Thu, 16 May 2002 10:18:44 -0700

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

Category: compile or build problem
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: src/writeout.c needs sys/types.h

Initial Comment:
When compiling curl-7.9.7 on FreeBSD 4.5-STABLE I get

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:32:
/usr/include/sys/event.h:52: syntax error before
`uintptr_t'
/usr/include/sys/event.h:54: syntax error before
`u_short'
In file included from writeout.c:32:
/usr/include/sys/select.h:47: syntax error before
`pid_t'
*** Error code 1

Adding #include <sys/types.h> before <sys/select.h>
eliminated the problem.

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

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

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: bandwidth_at_sourceforge.net
Received on 2002-05-16