compiling Kaffe for win32 !
Godmar Back
kaffe@rufus.w3.org
Mon, 24 Aug 1998 11:19:45 -0600 (MDT)
>
> DDunkin@walldata.com wrote:
> > gcc -g -O2 -I. -I../../../include -I./../../../include -I../../../config
> > -I./../../../config -c Runtime.c -o Runtime.o
> > In file included from Runtime.c:16:
> > ./../../config/config-io.h:21: invalid macro name
>
> You get the error because line 21 in config-io.h reads #define
> <winsock.h> (umm... obviously). That would certainly be easy to fix,
> but you don't really want winsock at all sice Cygwin32 has "unix"
> sockets. A quick and easy way to solve the problem is to add the
> follwing lines to ~/config/config-hacks.h:
>
> /*
> * Cygnus32 has both winsock.h and sys/socket.h which
> * will give us problems
> */
> #if defined(HAVE_WINSOCK_H) && defined(HAVE_SYS_SOCKET_H)
> #undef HAVE_WINSOCK_H
> #endif
>
This is already fixed in the current snapshot.
- Godmar