Mercurial > emacs
comparison src/sysdep.c @ 29387:2ead157165c4
Conditionally include stdlib.h, unistd.h.
(VFORK_RETURN_TYPE): Remove.
author | Dave Love <fx@gnu.org> |
---|---|
date | Fri, 02 Jun 2000 15:44:45 +0000 |
parents | c8f4d06938b9 |
children | e4f28eb9a373 |
comparison
equal
deleted
inserted
replaced
29386:2615af4301ac | 29387:2ead157165c4 |
---|---|
20 | 20 |
21 | 21 |
22 #include <config.h> | 22 #include <config.h> |
23 #include <signal.h> | 23 #include <signal.h> |
24 #include <setjmp.h> | 24 #include <setjmp.h> |
25 #ifdef HAVE_UNISTD_H | |
26 #include <unistd.h> | |
27 #endif | |
25 | 28 |
26 #include "lisp.h" | 29 #include "lisp.h" |
27 #include "blockinput.h" | 30 #include "blockinput.h" |
28 #undef NULL | 31 #undef NULL |
29 | 32 |
71 #include <errno.h> | 74 #include <errno.h> |
72 | 75 |
73 /* Get _POSIX_VDISABLE, if it is available. */ | 76 /* Get _POSIX_VDISABLE, if it is available. */ |
74 #ifdef HAVE_UNISTD_H | 77 #ifdef HAVE_UNISTD_H |
75 #include <unistd.h> | 78 #include <unistd.h> |
79 #endif | |
80 | |
81 #ifdef HAVE_STDLIB_H | |
82 #include <stdlib.h> | |
76 #endif | 83 #endif |
77 | 84 |
78 #ifdef HAVE_SETPGID | 85 #ifdef HAVE_SETPGID |
79 #if !defined (USG) || defined (BSD_PGRPS) | 86 #if !defined (USG) || defined (BSD_PGRPS) |
80 #define setpgrp setpgid | 87 #define setpgrp setpgid |
201 struct utimbuf { | 208 struct utimbuf { |
202 long actime; | 209 long actime; |
203 long modtime; | 210 long modtime; |
204 }; | 211 }; |
205 #endif | 212 #endif |
206 #endif | |
207 | |
208 #ifndef VFORK_RETURN_TYPE | |
209 #define VFORK_RETURN_TYPE int | |
210 #endif | 213 #endif |
211 | 214 |
212 /* LPASS8 is new in 4.3, and makes cbreak mode provide all 8 bits. */ | 215 /* LPASS8 is new in 4.3, and makes cbreak mode provide all 8 bits. */ |
213 #ifndef LPASS8 | 216 #ifndef LPASS8 |
214 #define LPASS8 0 | 217 #define LPASS8 0 |