From 9e0c24df04a136c9128770e1f2ea8cdaac268e1c Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Mon, 4 Mar 2013 15:56:17 +0200 Subject: Make buildable on DJGPP. --- pc/ChangeLog | 8 ++++++++ pc/Makefile | 2 ++ pc/config.sed | 9 ++++++++- 3 files changed, 18 insertions(+), 1 deletion(-) (limited to 'pc') diff --git a/pc/ChangeLog b/pc/ChangeLog index e7378b5f..d4116865 100644 --- a/pc/ChangeLog +++ b/pc/ChangeLog @@ -1,3 +1,11 @@ +2013-03-04 Scott Deifik + + * Makefile: Build additional C source files. + +2013-03-04 Eli Zaretskii + + * config.sed: Fixes to build on DJGPP. + 2013-02-09 Eli Zaretskii * gawkmisc.pc (dlopen, dlerror, dlclose, dlsym) [DYNAMIC]: New diff --git a/pc/Makefile b/pc/Makefile index 71197c53..b2344460 100644 --- a/pc/Makefile +++ b/pc/Makefile @@ -220,6 +220,8 @@ gawk.exe:: $(GAWKOBJS) $(RSP) $(RSPFILE) : $(GAWKOBJS) echo $(AWKOBJS1)$P > $@ echo $(AWKOBJS2)$P >> $@ + echo $(AWKOBJS3)$P >> $@ + echo $(AWKOBJS4)$P >> $@ echo awkgram$O getid$O $(OBJ) $(LIBOBJS)$P >> $@ # Notes to dependencies: diff --git a/pc/config.sed b/pc/config.sed index 6f76f43e..f70f9275 100644 --- a/pc/config.sed +++ b/pc/config.sed @@ -26,7 +26,7 @@ /configh\.in/a\ /* pc/config.h. Generated automatically by pc/config.sed. */ -/^#undef DYNAMIC$\c +/^#undef DYNAMIC$/c\ #ifdef _WIN32\ #define DYNAMIC 1\ #endif @@ -273,6 +273,13 @@ $a\ #define HAVE_POPEN_H 1\ #endif\ \ +#if defined(__DJGPP__)\ +typedef unsigned int uint32_t;\ +typedef int int32_t;\ +#define INT32_MAX INT_MAX\ +#define INT32_MIN INT_MIN\ +#endif\ +\ #if defined(__EMX__)\ #define strcasecmp stricmp\ #define strncasecmp strnicmp\ -- cgit v1.2.3