changeset 51552:d84e9160d869

Remove redundant include of unistd.h, stdlib.h. Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
author Dave Love <fx@gnu.org>
date Thu, 12 Jun 2003 22:13:18 +0000
parents 34f0347e6e45
children 13b4b238c835
files src/sysdep.c
diffstat 1 files changed, 3 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/src/sysdep.c	Thu Jun 12 22:09:14 2003 +0000
+++ b/src/sysdep.c	Thu Jun 12 22:13:18 2003 +0000
@@ -85,15 +85,6 @@
 #include <sys/stat.h>
 #include <errno.h>
 
-/* Get _POSIX_VDISABLE, if it is available.  */
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
 #ifdef HAVE_SETPGID
 #if !defined (USG) || defined (BSD_PGRPS)
 #undef setpgrp
@@ -2845,7 +2836,7 @@
 
 #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 @@
   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 @@
       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