I'm afraid the following change to programs/winecfg/main.c
date: 2004/03/16 01:32:36; author: julliard; state: Exp; lines: +2 -0 Need to include config.h.
broke FreeBSD (and others):
/sw/gcc-3.3.2/bin/gcc -c -I. -I. -I../../include -I../../include -D_REENTRANT -fPIC -Wall -pipe -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith -g -O2 -o main.o main.c In file included from main.c:35: /usr/include/unistd.h:189: error: conflicting types for `select' ../../include/winsock.h:975: error: previous declaration of `select'
Gerald
This is still broken after a few weeks; the patch below works around it.
On Wed, 17 Mar 2004, Gerald Pfeifer wrote:
I'm afraid the following change to programs/winecfg/main.c
date: 2004/03/16 01:32:36; author: julliard; state: Exp; lines: +2 -0 Need to include config.h.
broke FreeBSD (and others):
/sw/gcc-3.3.2/bin/gcc -c -I. -I. -I../../include -I../../include -D_REENTRANT -fPIC -Wall -pipe -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith -g -O2 -o main.o main.c In file included from main.c:35: /usr/include/unistd.h:189: error: conflicting types for `select' ../../include/winsock.h:975: error: previous declaration of `select'
Gerald
ChangeLog: Do not include <windows.h>, to avoid duplicate declaration of select(). Index: util.c =================================================================== RCS file: /home/wine/wine/programs/winetest/util.c,v retrieving revision 1.5 diff -u -3 -p -r1.5 util.c --- util.c 30 Mar 2004 04:32:46 -0000 1.5 +++ util.c 11 Apr 2004 09:12:10 -0000 @@ -18,7 +18,6 @@ * License along with this library; if not, write to the Free Software * */ -#include <windows.h> #include <unistd.h> #include <errno.h>