From b80263be1b94458dfbfdd2a23438a7888fcd4312 Mon Sep 17 00:00:00 2001 From: Dave Love Date: Thu, 12 Jun 2003 22:14:31 +0000 Subject: [PATCH] Remove redundant include of unistd.h, stdlib.h. Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED. --- src/ChangeLog | 7 +++++++ src/sysdep.c | 15 +++------------ 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index d09e65606da..adbf57396c2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2003-06-12 Dave Love + + * alloca.c (alloca): Declare arg as size_t. + + * sysdep.c: Remove redundant include of unistd.h, stdlib.h. Use + HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED. + 2003-06-11 Dave Love * search.c (shrink_regexp_cache): Use xrealloc. diff --git a/src/sysdep.c b/src/sysdep.c index cb03ae502bb..8d9d1beb519 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -85,15 +85,6 @@ static int delete_exited_processes; #include #include -/* Get _POSIX_VDISABLE, if it is available. */ -#ifdef HAVE_UNISTD_H -#include -#endif - -#ifdef HAVE_STDLIB_H -#include -#endif - #ifdef HAVE_SETPGID #if !defined (USG) || defined (BSD_PGRPS) #undef setpgrp @@ -2845,7 +2836,7 @@ sys_sigsetmask (sigset_t new_mask) #endif /* POSIX_SIGNALS */ -#if !defined HAVE_STRSIGNAL && !defined SYS_SIGLIST_DECLARED +#if !defined HAVE_STRSIGNAL && !HAVE_DECL_SYS_SIGLIST static char *my_sys_siglist[NSIG]; # ifdef sys_siglist # undef sys_siglist @@ -2861,7 +2852,7 @@ init_signals () sigfillset (&full_mask); #endif -#if !defined HAVE_STRSIGNAL && !defined SYS_SIGLIST_DECLARED +#if !defined HAVE_STRSIGNAL && !HAVE_DECL_SYS_SIGLIST if (! initialized) { # ifdef SIGABRT @@ -3021,7 +3012,7 @@ init_signals () sys_siglist[SIGXFSZ] = "File size limit exceeded"; # endif } -#endif /* !defined HAVE_STRSIGNAL && !defined SYS_SIGLIST_DECLARED */ +#endif /* !defined HAVE_STRSIGNAL && !defined HAVE_DECL_SYS_SIGLIST */ } #ifndef HAVE_RANDOM -- 2.11.4.GIT