kbuild: use getopt_long(), not its _only() variant
authorArnaud Lacombe <lacombar@gmail.com>
Mon, 23 Aug 2010 16:01:24 +0000 (12:01 -0400)
committerMichal Marek <mmarek@suse.cz>
Tue, 31 Aug 2010 11:33:41 +0000 (13:33 +0200)
NetBSD lacks getopt_long_only() whereas getopt_long() works just fine.

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/kconfig/conf.c

index 4f0ed5b3a75e30f5194092bb63731bcac1c1bb04..4b3ad9b862b174fab6262a83cd682ee0c3a3a5d5 100644 (file)
@@ -466,7 +466,7 @@ int main(int ac, char **av)
        bindtextdomain(PACKAGE, LOCALEDIR);
        textdomain(PACKAGE);
 
-       while ((opt = getopt_long_only(ac, av, "", long_opts, NULL)) != -1) {
+       while ((opt = getopt_long(ac, av, "", long_opts, NULL)) != -1) {
                input_mode = (enum input_mode)opt;
                switch (opt) {
                case silentoldconfig: