kbuild: use getopt_long(), not its _only() variant
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>
This commit is contained in:
parent
9ba9568259
commit
c94d3fb01f
@ -466,7 +466,7 @@ int main(int ac, char **av)
|
|||||||
bindtextdomain(PACKAGE, LOCALEDIR);
|
bindtextdomain(PACKAGE, LOCALEDIR);
|
||||||
textdomain(PACKAGE);
|
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;
|
input_mode = (enum input_mode)opt;
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
case silentoldconfig:
|
case silentoldconfig:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user