summaryrefslogtreecommitdiff
path: root/msdos
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-04-12 15:41:24 +0000
committerRichard M. Stallman <rms@gnu.org>1996-04-12 15:41:24 +0000
commite28d81aa582e7e0d403e46dc00a99a1e3e8f35bd (patch)
tree7d39b666c04c429569b09f922c25af74d94ace1d /msdos
parent5ae5693922d852cbd968dd5b13792385bc97961e (diff)
downloademacs-e28d81aa582e7e0d403e46dc00a99a1e3e8f35bd.tar.gz
Under DJGPP v2, use <sys/config.h> instead of most of config.h.in.
Diffstat (limited to 'msdos')
-rw-r--r--msdos/sed2.inp17
1 files changed, 14 insertions, 3 deletions
diff --git a/msdos/sed2.inp b/msdos/sed2.inp
index 9ccd258e3e7..ca16ab8bd13 100644
--- a/msdos/sed2.inp
+++ b/msdos/sed2.inp
@@ -3,9 +3,18 @@
# ----------------------------------------------------------------------
/^#undef LISP_FLOAT_TYPE *$/s/undef/define/
/^#undef GNU_MALLOC *$/s/undef/define/
-# To use the djgpp malloc, deactivate the following line and active the next
/^#undef REL_ALLOC *$/s/undef/define/
-# /^#define GNU_MALLOC *$/s/GNU_MALLOC/SYSTEM_MALLOC/
+/^#undef HAVE_SYS_SELECT/i\
+#if defined(__DJGPP__) && __DJGPP__ > 1\
+/* In v2.0 and later almost everything is defined in <sys/config.h> */\
+#include <sys/config.h>\
+#undef HAVE_SELECT\
+#undef _LIBC\
+#define HAVE_VFORK 1\
+#define HAVE_STRUCT_UTIMBUF 1\
+#define LOCALTIME_CACHE 1\
+#define HAVE_TZSET 1\
+#else /* not __DJGPP__ > 1 */
/^#undef STDC_HEADERS *$/s/undef/define/
/^#undef HAVE_SYS_TIMEB_H *$/s/undef/define/
/^#undef HAVE_SYS_TIME_H *$/s/undef/define/
@@ -27,9 +36,11 @@
/^#undef HAVE_BCOPY *$/s/undef/define/
/^#undef HAVE_FREXP *$/s/undef/define/
/^#undef HAVE_FTIME *$/s/undef/define/
+/^#undef HAVE_MKTIME *$/s/undef/define/
/^#undef HAVE_STRERROR *$/s/undef/define/
/^#undef HAVE_TIMEVAL *$/s/undef/define/
-/^#undef HAVE_MKTIME *$/s/undef/define/
+/ HAVE_TIMEVAL/a\
+#endif /* not __DJGPP__ > 1 */
/^#define MULTI_FRAME *$/s/define/undef/
s/^#define USER_FULL_NAME .*$/#define USER_FULL_NAME (getenv ("NAME"))/
s/^#undef STACK_DIRECTION *$/#define STACK_DIRECTION -1/