summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-07-03 04:00:36 +0000
committerJim Meyering <jim@meyering.net>1996-07-03 04:00:36 +0000
commit7b2cea5ab25eaa08c4172d2a792717857c289743 (patch)
tree31a6179f2bf03ef8f1f4812bfeb46a63cfa6c561
parentb0d3bfa316910dce219c2e1d58ff30f144507913 (diff)
downloadcoreutils-7b2cea5ab25eaa08c4172d2a792717857c289743.tar.xz
[!EXIT_SUCCESS]: Define it.
[!EXIT_FAILURE]: Define it.
-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