]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
* src/system.h (EXIT_FAILURE, EXIT_SUCCESS): Remove definitions.
authorJim Meyering <jim@meyering.net>
Sat, 14 Oct 2006 12:12:44 +0000 (12:12 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 14 Oct 2006 12:12:44 +0000 (12:12 +0000)
Instead, include "exit.h".  This hereby retires the work-around for
"Sony NEWS-OS Release 4.0C"'s bug due to "#define EXIT_FAILURE 0".

ChangeLog
src/system.h

index 0e74305551503104d60408d88ab9087f58a81771..4d08665601f95b11ee323bdde03e3ec2d03a232c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2006-10-14  Jim Meyering  <jim@meyering.net>
 
+       * src/system.h (EXIT_FAILURE, EXIT_SUCCESS): Remove definitions.
+       Instead, include "exit.h".  This hereby retires the work-around for
+       "Sony NEWS-OS Release 4.0C"'s bug due to "#define EXIT_FAILURE 0".
+
        * src/cksum.c (uint_fast32_t): Don't define.
        Instead, include <stdint.h>.
 
index 29d170fd33420238fa24c1e88530840ddc048456..87a379e22f1377185411a6c044c614474181314d 100644 (file)
@@ -117,18 +117,7 @@ you must include <sys/types.h> before including this file
 
 #include <stdbool.h>
 #include <stdlib.h>
-
-/* 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
+#include <exit.h>
 
 /* Exit statuses for programs like 'env' that exec other programs.
    EXIT_FAILURE might not be 1, so use EXIT_FAIL in such programs.  */