diff options
author | kris <kris@FreeBSD.org> | 2002-06-16 17:18:43 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2002-06-16 17:18:43 +0800 |
commit | 8f6fb0280b10942bf83a2d3ca7fb2342921b512f (patch) | |
tree | f9f527ffa7f179b515241f5919a2152afd7daf55 /net/rmsg | |
parent | c570d543eaf6e109d943ea7c9e1529284d4af5af (diff) | |
download | freebsd-ports-gnome-8f6fb0280b10942bf83a2d3ca7fb2342921b512f.tar.gz freebsd-ports-gnome-8f6fb0280b10942bf83a2d3ca7fb2342921b512f.tar.zst freebsd-ports-gnome-8f6fb0280b10942bf83a2d3ca7fb2342921b512f.zip |
Fix build on current.
Submitted by: mike
Diffstat (limited to 'net/rmsg')
-rw-r--r-- | net/rmsg/files/patch-server.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/net/rmsg/files/patch-server.c b/net/rmsg/files/patch-server.c new file mode 100644 index 000000000000..72aaf6245f0b --- /dev/null +++ b/net/rmsg/files/patch-server.c @@ -0,0 +1,21 @@ +--- server.c Tue Jun 4 21:40:19 2002 ++++ server.c Tue Jun 4 21:42:56 2002 +@@ -146,7 +146,7 @@ + { + int child, pid, fd; + unsigned int retval = 0; +-#if defined(HPUX) || defined(SVR4) ++#if defined(HPUX) || defined(SVR4) || defined(BSD) + int status; + #else + union wait status; +@@ -202,6 +202,9 @@ + #if defined(HPUX) || defined(SVR4) + if (status & 0xff) retval = -1; + else retval = ((status & 0xffff) >> 8); ++#elif defined(BSD) ++ if (WIFSIGNALED(status)) retval = -1; ++ else retval = WEXITSTATUS(status); + #else + if (status.w_termsig) retval = -1; /* ended in signal */ + else retval = status.w_retcode; |