changeset 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 2615af4301ac
children 315367ef0316
files src/sysdep.c
diffstat 1 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/sysdep.c	Fri Jun 02 15:40:51 2000 +0000
+++ b/src/sysdep.c	Fri Jun 02 15:44:45 2000 +0000
@@ -22,6 +22,9 @@
 #include <config.h>
 #include <signal.h>
 #include <setjmp.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
 
 #include "lisp.h"
 #include "blockinput.h"
@@ -75,6 +78,10 @@
 #include <unistd.h>
 #endif
 
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
 #ifdef HAVE_SETPGID
 #if !defined (USG) || defined (BSD_PGRPS)
 #define setpgrp setpgid
@@ -205,10 +212,6 @@
 #endif
 #endif
 
-#ifndef VFORK_RETURN_TYPE
-#define VFORK_RETURN_TYPE int
-#endif
-
 /* LPASS8 is new in 4.3, and makes cbreak mode provide all 8 bits.  */
 #ifndef LPASS8
 #define LPASS8 0