summaryrefslogtreecommitdiff
path: root/src/os.h
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amade@asmblr.net>2012-01-17 22:12:29 +0100
committerAmadeusz Sławiński <amade@asmblr.net>2015-06-25 15:54:18 +0200
commite888ee0799ed2a93b1e78fad4f768ffd9bf4c161 (patch)
tree557a55e932a39453110531ea93eaba70e488b3c1 /src/os.h
parentefe236aaa420ffa7dd8eaf3f2d6ba3db03342812 (diff)
downloadscreen-e888ee0799ed2a93b1e78fad4f768ffd9bf4c161.tar.gz
remove #BSDWAIT
Diffstat (limited to 'src/os.h')
-rw-r--r--src/os.h24
1 files changed, 4 insertions, 20 deletions
diff --git a/src/os.h b/src/os.h
index 4d32459..bc2e3b0 100644
--- a/src/os.h
+++ b/src/os.h
@@ -266,19 +266,11 @@
# include <sys/wait.h>
#ifndef WTERMSIG
-# ifndef BSDWAIT /* if wait is NOT a union: */
-# define WTERMSIG(status) (status & 0177)
-# else
-# define WTERMSIG(status) status.w_T.w_Termsig
-# endif
+# define WTERMSIG(status) (status & 0177)
#endif
#ifndef WSTOPSIG
-# ifndef BSDWAIT /* if wait is NOT a union: */
-# define WSTOPSIG(status) ((status >> 8) & 0377)
-# else
-# define WSTOPSIG(status) status.w_S.w_Stopsig
-# endif
+# define WSTOPSIG(status) ((status >> 8) & 0377)
#endif
/* NET-2 uses WCOREDUMP */
@@ -287,19 +279,11 @@
#endif
#ifndef WIFCORESIG
-# ifndef BSDWAIT /* if wait is NOT a union: */
-# define WIFCORESIG(status) (status & 0200)
-# else
-# define WIFCORESIG(status) status.w_T.w_Coredump
-# endif
+# define WIFCORESIG(status) (status & 0200)
#endif
#ifndef WEXITSTATUS
-# ifndef BSDWAIT /* if wait is NOT a union: */
-# define WEXITSTATUS(status) ((status >> 8) & 0377)
-# else
-# define WEXITSTATUS(status) status.w_T.w_Retcode
-# endif
+# define WEXITSTATUS(status) ((status >> 8) & 0377)
#endif
/*****************************************************************