From: Jim Meyering Date: Wed, 3 Jul 1996 04:00:36 +0000 (+0000) Subject: [!EXIT_SUCCESS]: Define it. X-Git-Tag: FILEUTILS-3_12p~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b2cea5ab25eaa08c4172d2a792717857c289743;p=thirdparty%2Fcoreutils.git [!EXIT_SUCCESS]: Define it. [!EXIT_FAILURE]: Define it. --- diff --git a/src/system.h b/src/system.h index 2d71935144..8b906aaec4 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