fouts@garth.stars.flab.Fujitsu.JUNET (Martin Fouts) (03/16/89)
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 <signal.h> --- 142,148 ----- #ifdef emacs #include "config.h" ! #else /* Determine which kind of system this is. */ #include <signal.h> *************** *** 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"