From d3eb3bfac8dd59a761ebc3283a44d4dee6cd2d12 Mon Sep 17 00:00:00 2001 From: Dave Love Date: Fri, 2 Jun 2000 15:44:45 +0000 Subject: [PATCH] Conditionally include stdlib.h, unistd.h. (VFORK_RETURN_TYPE): Remove. --- src/sysdep.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/sysdep.c b/src/sysdep.c index e5e46f77cbc..d5300f55e6f 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -22,6 +22,9 @@ Boston, MA 02111-1307, USA. */ #include #include #include +#ifdef HAVE_UNISTD_H +#include +#endif #include "lisp.h" #include "blockinput.h" @@ -75,6 +78,10 @@ extern int h_errno; #include #endif +#ifdef HAVE_STDLIB_H +#include +#endif + #ifdef HAVE_SETPGID #if !defined (USG) || defined (BSD_PGRPS) #define setpgrp setpgid @@ -205,10 +212,6 @@ struct utimbuf { #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 -- 2.39.2