diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2015-09-19 04:02:22 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2015-09-19 04:02:22 +0000 |
commit | 1892ffe471a1a6daeba5187eb37c5fe9cb48cf3e (patch) | |
tree | e7b042ed001666cc8e0588591c4154d826c86fda /lib/libc/stdlib | |
parent | c9d092ae2ea91f9e4835850570601efad99c667d (diff) |
Don't wrap initialized variables: binutils appears to be mishandling them
on arm and m88k
problems with optind observed by jsg@
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r-- | lib/libc/stdlib/getopt_long.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/stdlib/getopt_long.c b/lib/libc/stdlib/getopt_long.c index 21407824ddf..fe4565526ac 100644 --- a/lib/libc/stdlib/getopt_long.c +++ b/lib/libc/stdlib/getopt_long.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getopt_long.c,v 1.27 2015/09/12 14:48:14 guenther Exp $ */ +/* $OpenBSD: getopt_long.c,v 1.28 2015/09/19 04:02:21 guenther Exp $ */ /* $NetBSD: getopt_long.c,v 1.15 2002/01/31 22:43:40 tv Exp $ */ /* @@ -61,10 +61,12 @@ int optopt = '?'; /* character checked for validity */ int optreset; /* reset getopt */ char *optarg; /* argument associated with option */ +#if 0 /* DEF_* only work on initialized (non-COMMON) variables */ DEF_WEAK(opterr); DEF_WEAK(optind); DEF_WEAK(optopt); +#endif #define PRINT_ERROR ((opterr) && (*options != ':')) |