blob: 7a7dc24c04635851a8e69268c1f03f20670a80e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-src_internal_libfyaml-parser.c,v 1.1 2022/12/08 19:16:20 khorben Exp $
getopt_long_only is not very portable; use getopt_long instead
--- src/internal/libfyaml-parser.c.orig 2022-12-08 19:03:44.942254815 +0000
+++ src/internal/libfyaml-parser.c
@@ -3822,7 +3822,7 @@ int main(int argc, char *argv[])
fy_valgrind_check(&argc, &argv);
- while ((opt = getopt_long_only(argc, argv, "I:m:i:w:d:rsc:C:D:M:W:S:qh", lopts, &lidx)) != -1) {
+ while ((opt = getopt_long(argc, argv, "I:m:i:w:d:rsc:C:D:M:W:S:qh", lopts, &lidx)) != -1) {
switch (opt) {
case 'I':
tmp = alloca(strlen(cfg.search_path) + 1 + strlen(optarg) + 1);
|