From e336874bf44154ea594fec7a211fd5703e8c2710 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Fri, 26 May 1995 22:10:20 +0000 Subject: [PATCH] (VFORK_RETURN_TYPE): Use int if not already defined. (vfork): Declare the return type. --- src/sysdep.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sysdep.c b/src/sysdep.c index 742582d5382..41bbd92c43d 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -191,6 +191,10 @@ 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 @@ -2935,6 +2939,7 @@ sys_write (fildes, buf, nbyte) * Substitute fork for vfork on USG flavors. */ +VFORK_RETURN_TYPE vfork () { return (fork ()); -- 2.39.2