From: Andris Pavenis To: djgpp-workers AT delorie DOT com Subject: [PATCH] Fix for cross-building src/dxe/dxe3gen.h under Linux Date: Mon, 30 Jun 2003 19:53:30 +0300 User-Agent: KMail/1.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200306301953.30932.pavenis@latnet.lv> Reply-To: djgpp-workers AT delorie DOT com 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 #include + /* _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