Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!arisia!quintus!sri-unix!garth!fouts@garth.stars.flab.Fujitsu.JUNET (Martin Fouts) From: fouts@garth.stars.flab.Fujitsu.JUNET (Martin Fouts) Newsgroups: gnu.emacs.bug Subject: Bug in malloc defines(?) Message-ID: <2638@garth.UUCP> Date: 15 Mar 89 23:03:08 GMT Sender: fouts@garth.UUCP Distribution: gnu Organization: INTERGRAPH (APD) -- Palo Alto, CA Lines: 48 I just started trying to build m- and s- files for the Intergraph Clipper and ran across a code sequence in malloc.c that assumes that if SIGTSTP and SIGIO are defined the system is a BSD4.2 system and defines BSD42. This is so that defines surronding the limit warning code will work correctly. Unfortunately, the clipper has SIGTSTP and SIGIO, but not BSD style limits. I would propose that this code be changed so that the guess check only be done if "config.h" wasn't included. Context diffs are: *** malloc.c.old Thu Jun 9 20:41:18 1988 --- malloc.c Wed Mar 15 15:00:36 1989 *************** *** 142,148 #ifdef emacs #include "config.h" ! #endif /* emacs */ /* Determine which kind of system this is. */ #include --- 142,148 ----- #ifdef emacs #include "config.h" ! #else /* Determine which kind of system this is. */ #include *************** *** 157,162 #define BSD42 #endif /* SIGIO */ #endif /* SIGTSTP */ /* Define getpagesize () if the system does not. */ #include "getpagesize.h" --- 157,164 ----- #define BSD42 #endif /* SIGIO */ #endif /* SIGTSTP */ + + #endif /* emacs */ /* Define getpagesize () if the system does not. */ #include "getpagesize.h"