(EXIT_FAILURE): Define.
authorJim Meyering <jim@meyering.net>
Sat, 16 Jan 1999 15:17:48 +0000 (15:17 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 16 Jan 1999 15:17:48 +0000 (15:17 +0000)
(ARGMATCH_DIE): Use it.

lib/argmatch.c

index 19d5aa4..6ae76ac 100644 (file)
 
 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