]> code.delx.au - gnu-emacs/blobdiff - src/s/bsd386.h
(__bsdi__): Define, unless already defined.
[gnu-emacs] / src / s / bsd386.h
index 29fb047b6ca3c59a214c52a9d8f59b974a1526fd..e2e813369bbb7cc71525262461cfde7d52d3a422 100644 (file)
@@ -2,6 +2,12 @@
 
 #include "bsd4-3.h"
 
+#ifndef __bsdi__
+#define __bsdi__ 1
+#endif
+
+#define DECLARE_GETPWUID_WITH_UID_T
+
 #define SIGNALS_VIA_CHARACTERS
 
 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
 
 /* The dumped Emacs records the timezone it was dumped in.  */
 #define LOCALTIME_CACHE
+
+/* System uses OXTABS instead of the expected TAB3.
+   (Copied from netbsd.h.)  */
+#define TABDLY OXTABS
+#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