summaryrefslogtreecommitdiff
path: root/lib/argmatch.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2003-03-10 07:31:50 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2003-03-10 07:31:50 +0000
commitcea0f17ab7cc2b2974d20e93f3a337375d5047a0 (patch)
tree9c3233fb29d3f80249b0d61a880afaa12eedbc58 /lib/argmatch.c
parentfb38223637af267d288eaff210ef616edaa494e7 (diff)
downloadgnulib-cea0f17ab7cc2b2974d20e93f3a337375d5047a0.tar.gz
(EXIT_FAILURE): Define if the system doesn't.
Reported by Bruce Becker; see: http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
Diffstat (limited to 'lib/argmatch.c')
-rw-r--r--lib/argmatch.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/argmatch.c b/lib/argmatch.c
index 4ff5a492ea..3983632521 100644
--- a/lib/argmatch.c
+++ b/lib/argmatch.c
@@ -1,5 +1,7 @@
/* argmatch.c -- find a match for a string in an array
- Copyright (C) 1990, 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
+
+ Copyright (C) 1990, 1998, 1999, 2001, 2002, 2003 Free Software
+ Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -44,6 +46,10 @@
# define ARGMATCH_QUOTING_STYLE locale_quoting_style
#endif
+#ifndef EXIT_FAILURE
+# define EXIT_FAILURE 1
+#endif
+
/* Non failing version of argmatch call this function after failing. */
#ifndef ARGMATCH_DIE
# define ARGMATCH_DIE exit (EXIT_FAILURE)