]> git.saurik.com Git - bison.git/blobdiff - src/system.h
* tests/calc.at, tests/output.at, tests/regression.at,
[bison.git] / src / system.h
index a0b46eee3460882003d18a77b13c5c8f23b6d46d..bfd244637a0b8fe1efb9508df6f9ea07eaf4a16e 100644 (file)
 # include <stdlib.h>
 #endif
 
 # include <stdlib.h>
 #endif
 
+/* 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
+
 #if HAVE_UNISTD_H
 # include <unistd.h>
 #endif
 #if HAVE_UNISTD_H
 # include <unistd.h>
 #endif