changeset 21337:e5cb4efcffac

(EXIT_FAILURE): Define. (ARGMATCH_DIE): Use it.
author Jim Meyering <jim@meyering.net>
date Sat, 16 Jan 1999 15:17:48 +0000
parents e11adc9fc752
children 72a8461f520e
files lib/argmatch.c
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/argmatch.c	Sat Jan 16 15:12:04 1999 +0000
+++ b/lib/argmatch.c	Sat Jan 16 15:17:48 1999 +0000
@@ -48,9 +48,17 @@
 
 extern char *program_name;
 
+/* 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
+
 /* Non failing version of argmatch call this function after failing. */
 #ifndef ARGMATCH_DIE
-# define ARGMATCH_DIE exit (2)
+# define ARGMATCH_DIE exit (EXIT_FAILURE)
 #endif
 
 static void