]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/2.6.36.2/kbuild-use-getopt_long-not-its-_only-variant.patch
Fixes for 5.10
[thirdparty/kernel/stable-queue.git] / releases / 2.6.36.2 / kbuild-use-getopt_long-not-its-_only-variant.patch
CommitLineData
bcd4f083
GKH
1From c94d3fb01fb6db1899cdf53ea4eb9d38e08a08fe Mon Sep 17 00:00:00 2001
2From: Arnaud Lacombe <lacombar@gmail.com>
3Date: Mon, 23 Aug 2010 12:01:24 -0400
4Subject: kbuild: use getopt_long(), not its _only() variant
5
6From: Arnaud Lacombe <lacombar@gmail.com>
7
8commit c94d3fb01fb6db1899cdf53ea4eb9d38e08a08fe upstream.
9
10NetBSD lacks getopt_long_only() whereas getopt_long() works just fine.
11
12Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
13Acked-by: Sam Ravnborg <sam@ravnborg.org>
14Signed-off-by: Michal Marek <mmarek@suse.cz>
15Signed-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: