From 7b2cea5ab25eaa08c4172d2a792717857c289743 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 3 Jul 1996 04:00:36 +0000 Subject: [!EXIT_SUCCESS]: Define it. [!EXIT_FAILURE]: Define it. --- src/system.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 #else -- cgit v1.2.3-70-g09d2