summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libc/stdlib/getopt_long.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libc/stdlib/getopt_long.c b/src/lib/libc/stdlib/getopt_long.c
index 1256e5d655..4fc1874367 100644
--- a/src/lib/libc/stdlib/getopt_long.c
+++ b/src/lib/libc/stdlib/getopt_long.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: getopt_long.c,v 1.1 2002/12/03 20:24:30 millert Exp $ */ 1/* $OpenBSD: getopt_long.c,v 1.2 2002/12/03 20:28:12 millert Exp $ */
2/* $NetBSD: getopt_long.c,v 1.15 2002/01/31 22:43:40 tv Exp $ */ 2/* $NetBSD: getopt_long.c,v 1.15 2002/01/31 22:43:40 tv Exp $ */
3 3
4/*- 4/*-
@@ -38,7 +38,7 @@
38 */ 38 */
39 39
40#if defined(LIBC_SCCS) && !defined(lint) 40#if defined(LIBC_SCCS) && !defined(lint)
41static char *rcsid = "$OpenBSD: getopt_long.c,v 1.1 2002/12/03 20:24:30 millert Exp $"; 41static char *rcsid = "$OpenBSD: getopt_long.c,v 1.2 2002/12/03 20:28:12 millert Exp $";
42#endif /* LIBC_SCCS and not lint */ 42#endif /* LIBC_SCCS and not lint */
43 43
44#include <err.h> 44#include <err.h>
@@ -47,11 +47,13 @@ static char *rcsid = "$OpenBSD: getopt_long.c,v 1.1 2002/12/03 20:24:30 millert
47#include <stdlib.h> 47#include <stdlib.h>
48#include <string.h> 48#include <string.h>
49 49
50#ifdef REPLACE_GETOPT
50int opterr = 1; /* if error message should be printed */ 51int opterr = 1; /* if error message should be printed */
51int optind = 1; /* index into parent argv vector */ 52int optind = 1; /* index into parent argv vector */
52int optopt = '?'; /* character checked for validity */ 53int optopt = '?'; /* character checked for validity */
53int optreset; /* reset getopt */ 54int optreset; /* reset getopt */
54char *optarg; /* argument associated with option */ 55char *optarg; /* argument associated with option */
56#endif
55 57
56#define PRINT_ERROR ((opterr) && (*options != ':')) 58#define PRINT_ERROR ((opterr) && (*options != ':'))
57 59