Commit e336874b authored by Karl Heuer's avatar Karl Heuer
Browse files

(VFORK_RETURN_TYPE): Use int if not already defined.

(vfork): Declare the return type.
parent 5dc2afde
...@@ -191,6 +191,10 @@ struct utimbuf { ...@@ -191,6 +191,10 @@ struct utimbuf {
#endif #endif
#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. */ /* LPASS8 is new in 4.3, and makes cbreak mode provide all 8 bits. */
#ifndef LPASS8 #ifndef LPASS8
#define LPASS8 0 #define LPASS8 0
...@@ -2935,6 +2939,7 @@ sys_write (fildes, buf, nbyte) ...@@ -2935,6 +2939,7 @@ sys_write (fildes, buf, nbyte)
* Substitute fork for vfork on USG flavors. * Substitute fork for vfork on USG flavors.
*/ */
VFORK_RETURN_TYPE
vfork () vfork ()
{ {
return (fork ()); return (fork ());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment