# HG changeset patch # User james # Date 1030650334 0 # Node ID 13e47461d5090f26fd56fd9b7dc49ae9d3a5c157 # Parent b6b74d181b7f8d7f1f13488d22755d4df43c6451 [xemacs-hg @ 2002-08-29 19:45:20 by james] Include syssignal.h instead of signal.h. Move NSIG setting code for SVR4 to syssignal.h. diff -r b6b74d181b7f -r 13e47461d509 lib-src/ChangeLog --- a/lib-src/ChangeLog Thu Aug 29 08:28:50 2002 +0000 +++ b/lib-src/ChangeLog Thu Aug 29 19:45:34 2002 +0000 @@ -1,3 +1,10 @@ +2002-08-21 Jerry James + + * gnuserv.h: Revert previous patch. Include syssignal.h instead + of signal.h. + * tcp.c: Include config.h, and substitute syssignal.h for + signal.h. + 2002-08-02 Jerry James * gnuserv.h: Include signal.h early to define NSIG before config.h diff -r b6b74d181b7f -r 13e47461d509 lib-src/gnuserv.h --- a/lib-src/gnuserv.h Thu Aug 29 08:28:50 2002 +0000 +++ b/lib-src/gnuserv.h Thu Aug 29 19:45:34 2002 +0000 @@ -39,15 +39,6 @@ #define PATCHLEVEL 2 -#include -#include -#include -#include -#include -#include -#include -#include - #define NO_SHORTNAMES /* gnuserv should not be compiled using SOCKS */ #define DO_NOT_SOCKSIFY @@ -110,6 +101,15 @@ #endif /* No communication method pre-defined */ +#include +#include +#include +#include +#include +#include +#include "syssignal.h" +#include + #ifdef HAVE_UNISTD_H #include #endif diff -r b6b74d181b7f -r 13e47461d509 lib-src/tcp.c --- a/lib-src/tcp.c Thu Aug 29 08:28:50 2002 +0000 +++ b/lib-src/tcp.c Thu Aug 29 19:45:34 2002 +0000 @@ -32,6 +32,9 @@ * cc -O -o tcp tcp.c -DFUJITSU_UTS -lu -lsocket */ +#ifdef HAVE_CONFIG_H +#include +#endif #include #include #include @@ -51,7 +54,7 @@ #ifdef USG #include -#include +#include "syssignal.h" #endif #ifdef USG diff -r b6b74d181b7f -r 13e47461d509 src/ChangeLog --- a/src/ChangeLog Thu Aug 29 08:28:50 2002 +0000 +++ b/src/ChangeLog Thu Aug 29 19:45:34 2002 +0000 @@ -1,3 +1,12 @@ +2002-08-21 Jerry James + + * getloadavg.c: Substitute syssignal.h for signal.h. + * malloc.c: Ditto. + * unexhp9k3.c: Ditto. + * syssignal.h: Put NSIG setting code for SVR4 here. + * s/usg5-4.h: Don't include signal.h. Remove NSIG setting code, + since signal.h has not yet been included. + 2002-08-16 Steve Youngs * config.h.in (XEMACS_EXTRA_NAME): New. diff -r b6b74d181b7f -r 13e47461d509 src/getloadavg.c --- a/src/getloadavg.c Thu Aug 29 08:28:50 2002 +0000 +++ b/src/getloadavg.c Thu Aug 29 19:45:34 2002 +0000 @@ -408,7 +408,7 @@ #ifdef UMAX #include -#include +#include "syssignal.h" #include #include #include diff -r b6b74d181b7f -r 13e47461d509 src/malloc.c --- a/src/malloc.c Thu Aug 29 08:28:50 2002 +0000 +++ b/src/malloc.c Thu Aug 29 19:45:34 2002 +0000 @@ -149,7 +149,7 @@ #else /* Determine which kind of system this is. */ -#include +#include "syssignal.h" #ifndef SIGTSTP #ifndef USG #define USG diff -r b6b74d181b7f -r 13e47461d509 src/s/usg5-4.h --- a/src/s/usg5-4.h Thu Aug 29 08:28:50 2002 +0000 +++ b/src/s/usg5-4.h Thu Aug 29 19:45:34 2002 +0000 @@ -79,22 +79,12 @@ #include #include #include -#include #include #include #endif #undef BROKEN_SIGIO -/* Some SVr4s don't define NSIG in sys/signal.h for ANSI environments; - * instead, there's a system variable _sys_nsig. Unfortunately, we need the - * constant to dimension an array. So wire in the appropriate value here. - */ - -#ifndef NSIG -#define NSIG 32 -#endif - /* We need bss_end from emacs.c for undumping */ #ifndef USG_SHARED_LIBRARIES diff -r b6b74d181b7f -r 13e47461d509 src/syssignal.h --- a/src/syssignal.h Thu Aug 29 08:28:50 2002 +0000 +++ b/src/syssignal.h Thu Aug 29 19:45:34 2002 +0000 @@ -251,7 +251,15 @@ #endif #ifndef NSIG -# define NSIG (SIGUSR2+1) /* guess how many elements are in sys_siglist... */ +# ifdef USG5_4 +/* Some SVr4s don't define NSIG in sys/signal.h for ANSI environments; + * instead, there's a system variable _sys_nsig. Unfortunately, we need the + * constant to dimension an array. So wire in the appropriate value here. + */ +# define NSIG 32 +# else +# define NSIG (SIGUSR2+1) /* guess how many elements are in sys_siglist... */ +# endif #endif /* SYS_SIGLIST_DECLARED is determined by configure. On Linux, it seems, diff -r b6b74d181b7f -r 13e47461d509 src/unexhp9k3.c --- a/src/unexhp9k3.c Thu Aug 29 08:28:50 2002 +0000 +++ b/src/unexhp9k3.c Thu Aug 29 19:45:34 2002 +0000 @@ -41,7 +41,7 @@ #include #include #include -#include +#include "syssignal.h" #ifdef __hp9000s300 # include #endif