]>
Commit | Line | Data |
---|---|---|
bcd4f083 GKH |
1 | From c94d3fb01fb6db1899cdf53ea4eb9d38e08a08fe Mon Sep 17 00:00:00 2001 |
2 | From: Arnaud Lacombe <lacombar@gmail.com> | |
3 | Date: Mon, 23 Aug 2010 12:01:24 -0400 | |
4 | Subject: kbuild: use getopt_long(), not its _only() variant | |
5 | ||
6 | From: Arnaud Lacombe <lacombar@gmail.com> | |
7 | ||
8 | commit c94d3fb01fb6db1899cdf53ea4eb9d38e08a08fe upstream. | |
9 | ||
10 | NetBSD lacks getopt_long_only() whereas getopt_long() works just fine. | |
11 | ||
12 | Signed-off-by: Arnaud Lacombe <lacombar@gmail.com> | |
13 | Acked-by: Sam Ravnborg <sam@ravnborg.org> | |
14 | Signed-off-by: Michal Marek <mmarek@suse.cz> | |
15 | Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> | |
16 | ||
17 | --- | |
18 | scripts/kconfig/conf.c | 2 +- | |
19 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
20 | ||
21 | --- a/scripts/kconfig/conf.c | |
22 | +++ b/scripts/kconfig/conf.c | |
23 | @@ -466,7 +466,7 @@ int main(int ac, char **av) | |
24 | bindtextdomain(PACKAGE, LOCALEDIR); | |
25 | textdomain(PACKAGE); | |
26 | ||
27 | - while ((opt = getopt_long_only(ac, av, "", long_opts, NULL)) != -1) { | |
28 | + while ((opt = getopt_long(ac, av, "", long_opts, NULL)) != -1) { | |
29 | input_mode = (enum input_mode)opt; | |
30 | switch (opt) { | |
31 | case silentoldconfig: |