diff options
author | millert <> | 2002-12-03 20:28:12 +0000 |
---|---|---|
committer | millert <> | 2002-12-03 20:28:12 +0000 |
commit | 1cd76167d67981f33b204da698ca74832ee59bba (patch) | |
tree | fb40fbc81a5331ce7f2961d9e5e64fab5ca83410 /src/lib | |
parent | 5fe9fa17186222084f633ef821dd98b2701ff5f3 (diff) | |
download | openbsd-1cd76167d67981f33b204da698ca74832ee59bba.tar.gz openbsd-1cd76167d67981f33b204da698ca74832ee59bba.tar.bz2 openbsd-1cd76167d67981f33b204da698ca74832ee59bba.zip |
Whoops, add missing #ifdef REPLACE_GETOPT
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libc/stdlib/getopt_long.c | 6 |
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) |
41 | static char *rcsid = "$OpenBSD: getopt_long.c,v 1.1 2002/12/03 20:24:30 millert Exp $"; | 41 | static 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 | ||
50 | int opterr = 1; /* if error message should be printed */ | 51 | int opterr = 1; /* if error message should be printed */ |
51 | int optind = 1; /* index into parent argv vector */ | 52 | int optind = 1; /* index into parent argv vector */ |
52 | int optopt = '?'; /* character checked for validity */ | 53 | int optopt = '?'; /* character checked for validity */ |
53 | int optreset; /* reset getopt */ | 54 | int optreset; /* reset getopt */ |
54 | char *optarg; /* argument associated with option */ | 55 | char *optarg; /* argument associated with option */ |
56 | #endif | ||
55 | 57 | ||
56 | #define PRINT_ERROR ((opterr) && (*options != ':')) | 58 | #define PRINT_ERROR ((opterr) && (*options != ':')) |
57 | 59 | ||