summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/system.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/system.h b/src/system.h
index 2d7193514..8b906aaec 100644
--- a/src/system.h
+++ b/src/system.h
@@ -179,6 +179,18 @@ extern int errno;
char *getenv ();
#endif /* STDC_HEADERS */
+/* The following test is to work around the gross typo in
+ systems like Sony NEWS-OS Release 4.0C, whereby EXIT_FAILURE
+ is defined to 0, not 1. */
+#if !EXIT_FAILURE
+# undef EXIT_FAILURE
+# define EXIT_FAILURE 1
+#endif
+
+#ifndef EXIT_SUCCESS
+# define EXIT_SUCCESS 0
+#endif
+
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#else