]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
[!EXIT_SUCCESS]: Define it.
authorJim Meyering <jim@meyering.net>
Wed, 3 Jul 1996 04:00:36 +0000 (04:00 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 3 Jul 1996 04:00:36 +0000 (04:00 +0000)
[!EXIT_FAILURE]: Define it.

src/system.h

index 2d71935144244f61fbb7f55fd1573acf8d1ea605..8b906aaec439abc4bb749a0f5a8650d96cfbf13e 100644 (file)
@@ -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