NetBSD lacks getopt_long_only() whereas getopt_long() works just fine.
Unified · Split
| @@ -466,7 +466,7 @@ int main(int ac, char **av) · 465 unmodified lines | |||
| 466 | bindtextdomain(PACKAGE, LOCALEDIR); | 466 | bindtextdomain(PACKAGE, LOCALEDIR); |
| 467 | textdomain(PACKAGE); | 467 | textdomain(PACKAGE); |
| 468 | 468 | ||
| 469 | while ((opt = getopt_long_only(ac, av, "", long_opts, NULL)) != -1) { | 469 | while ((opt = getopt_long(ac, av, "", long_opts, NULL)) != -1) { |
| 470 | input_mode = (enum input_mode)opt; | 470 | input_mode = (enum input_mode)opt; |
| 471 | switch (opt) { | 471 | switch (opt) { |
| 472 | case silentoldconfig: | 472 | case silentoldconfig: |