changeset 7805:94a6c666e4ef

(BSD): Redefine. (WAITTYPE, WRETCODE, WCOREDUMP): New definitions. Include wait.h.
author Richard M. Stallman <rms@gnu.org>
date Sun, 05 Jun 1994 18:05:15 +0000
parents 781655f97fee
children ef7a60d59543
files src/s/bsd386.h
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/s/bsd386.h	Sun Jun 05 18:00:08 1994 +0000
+++ b/src/s/bsd386.h	Sun Jun 05 18:05:15 1994 +0000
@@ -25,3 +25,17 @@
 #define TAB3 OXTABS
 
 #define SYSV_SYSTEM_DIR
+
+/* this silences a few compilation warnings */
+#undef BSD
+#define BSD 199103
+
+#define WAITTYPE int
+/* get this since it won't be included if WAITTYPE is defined */
+#ifdef emacs
+#include <sys/wait.h>
+#endif
+#define WRETCODE(w) WEXITSTATUS(w)
+#ifndef WCOREDUMP
+#define WCOREDUMP(w) ((w) & 0200)
+#endif