Mail Archives: djgpp-workers/2003/06/30/12:54:11
Macro _POSIX_SOURCE is defined when including coff.h while building
dxe3gen.exe. That causes none of COFF related definitions to be used
and compiler errors as the result. Perhaps simplest fix is simply undefining
_POSIX_SOURCE there.
That fixes building $(HOSTBIN)/dxegen.exe under Linux.
Andris
Index: djgpp/src/dxe/dxe3gen.c
===================================================================
RCS file: /cvs/djgpp/djgpp/src/dxe/dxe3gen.c,v
retrieving revision 1.3
diff -p -3 -r1.3 dxe3gen.c
*** djgpp/src/dxe/dxe3gen.c 14 May 2003 02:33:49 -0000 1.3
--- djgpp/src/dxe/dxe3gen.c 30 Jun 2003 16:47:50 -0000
***************
*** 20,25 ****
--- 20,28 ----
#include <stdlib.h>
#include <string.h>
+ /* _POSIX_SOURCE is defined at this point when cross compiling from
+ Linux. Therefore undefine it before including coff.h */
+ #undef _POSIX_SOURCE
#ifndef DXE_LD /* Cross compile ld name/location */
#define DXE_LD "ld"
#include <sys/dxe.h>
- Raw text -