* lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
authorEric Blake <ebb9@byu.net>
Fri, 9 Mar 2007 23:34:42 +0000 (23:34 +0000)
committerEric Blake <ebb9@byu.net>
Fri, 9 Mar 2007 23:34:42 +0000 (23:34 +0000)
spite of platforms like Tandem/NSK that define it to -1.

ChangeLog
lib/stdlib_.h

index 4940bef4b82ef5285a2042c73aa07abac5e67aae..fc237af4e0868c0b6534bf8e4ec818bbb984f95a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-03-09  Eric Blake  <ebb9@byu.net>
+
+       * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
+       spite of platforms like Tandem/NSK that define it to -1.
+
 2007-03-08  Bruno Haible  <bruno@clisp.org>
 
        * modules/vprintf-posix-tests: New file.
index c5917ec25e04a4ad27092ec2ab43c2b762c9800a..5d43203b7b68b9ec0a1947ecc2d68c2ea71433c4 100644 (file)
 #ifndef EXIT_SUCCESS
 # define EXIT_SUCCESS 0
 #endif
+/* Tandem/NSK and other platforms that define EXIT_FAILURE as -1 interfere
+   with proper operation of xargs.  */
 #ifndef EXIT_FAILURE
 # define EXIT_FAILURE 1
+#elif EXIT_FAILURE != 1
+# undef EXIT_FAILURE
+# define EXIT_FAILURE 1
 #endif