aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Love2003-06-12 22:14:31 +0000
committerDave Love2003-06-12 22:14:31 +0000
commitb80263be1b94458dfbfdd2a23438a7888fcd4312 (patch)
tree6457f224e246fb9ec3ab6a9f9ecd2f11a57510e1 /src
parent2136598a91ddccec5607d233e2a5f9b941b87bae (diff)
downloademacs-b80263be1b94458dfbfdd2a23438a7888fcd4312.tar.gz
emacs-b80263be1b94458dfbfdd2a23438a7888fcd4312.zip
Remove redundant include of unistd.h, stdlib.h. Use
HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog7
-rw-r--r--src/sysdep.c15
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 @@
12003-06-12 Dave Love <fx@gnu.org>
2
3 * alloca.c (alloca): Declare arg as size_t.
4
5 * sysdep.c: Remove redundant include of unistd.h, stdlib.h. Use
6 HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
7
12003-06-11 Dave Love <fx@gnu.org> 82003-06-11 Dave Love <fx@gnu.org>
2 9
3 * search.c (shrink_regexp_cache): Use xrealloc. 10 * 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;
85#include <sys/stat.h> 85#include <sys/stat.h>
86#include <errno.h> 86#include <errno.h>
87 87
88/* Get _POSIX_VDISABLE, if it is available. */
89#ifdef HAVE_UNISTD_H
90#include <unistd.h>
91#endif
92
93#ifdef HAVE_STDLIB_H
94#include <stdlib.h>
95#endif
96
97#ifdef HAVE_SETPGID 88#ifdef HAVE_SETPGID
98#if !defined (USG) || defined (BSD_PGRPS) 89#if !defined (USG) || defined (BSD_PGRPS)
99#undef setpgrp 90#undef setpgrp
@@ -2845,7 +2836,7 @@ sys_sigsetmask (sigset_t new_mask)
2845 2836
2846#endif /* POSIX_SIGNALS */ 2837#endif /* POSIX_SIGNALS */
2847 2838
2848#if !defined HAVE_STRSIGNAL && !defined SYS_SIGLIST_DECLARED 2839#if !defined HAVE_STRSIGNAL && !HAVE_DECL_SYS_SIGLIST
2849static char *my_sys_siglist[NSIG]; 2840static char *my_sys_siglist[NSIG];
2850# ifdef sys_siglist 2841# ifdef sys_siglist
2851# undef sys_siglist 2842# undef sys_siglist
@@ -2861,7 +2852,7 @@ init_signals ()
2861 sigfillset (&full_mask); 2852 sigfillset (&full_mask);
2862#endif 2853#endif
2863 2854
2864#if !defined HAVE_STRSIGNAL && !defined SYS_SIGLIST_DECLARED 2855#if !defined HAVE_STRSIGNAL && !HAVE_DECL_SYS_SIGLIST
2865 if (! initialized) 2856 if (! initialized)
2866 { 2857 {
2867# ifdef SIGABRT 2858# ifdef SIGABRT
@@ -3021,7 +3012,7 @@ init_signals ()
3021 sys_siglist[SIGXFSZ] = "File size limit exceeded"; 3012 sys_siglist[SIGXFSZ] = "File size limit exceeded";
3022# endif 3013# endif
3023 } 3014 }
3024#endif /* !defined HAVE_STRSIGNAL && !defined SYS_SIGLIST_DECLARED */ 3015#endif /* !defined HAVE_STRSIGNAL && !defined HAVE_DECL_SYS_SIGLIST */
3025} 3016}
3026 3017
3027#ifndef HAVE_RANDOM 3018#ifndef HAVE_RANDOM