winsock.h: msvcrt headers versus systems headers
pfeifer at dbai.tuwien.ac.at
Fri Jun 6 17:05:09 CDT 2003
The following change to include/winsock.h
date: 2003/06/04 20:15:39; author: julliard; state: Exp; lines: +1 -0
Yorick Hardy <yh at metroweb.co.za>
Include sys/time.h for struct timeval definition.
causes compilation failure of programs/notepad:
/sw/gcc-3.2.2/bin/gcc -c -I. -I. -I../../include -I../../include
-I../../include/msvcrt -D_REENTRANT -fPIC -DNO_LIBWINE_PORT -Wall
-mpreferred-stack-boundary=2 -gstabs+ -Wpointer-arith -g -O2 -o
In file included from ../../include/winsock.h:68,
/usr/include/sys/time.h:135: parse error before "__P"
/usr/include/sys/time.h:136: parse error before "__P"
/usr/include/sys/time.h:140: parse error before "timecounter_get_t"
The problem is that by virtue of -I../../include/msvcrt in
programs/notepad/Makefile, the statement
in line 67 of include/winsock.h actually includes the file
include/msvcrt/sys/types.h, which does not to define __P which
the FreeBSD system header which then gets pulled in by means of
in line 68 of include/winsock.h.
So, with this nice analysis ;-), is anybody going to fix this?
Gerald "Jerry" pfeifer at dbai.tuwien.ac.at http://www.pfeifer.com/gerald/
More information about the wine-devel