mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-13 14:25:12 -04:00
18 lines
659 B
C
18 lines
659 B
C
$NetBSD: patch-src_common_compat__getopt__main.c,v 1.3 2015/09/07 19:59:42 gdt Exp $
|
|
|
|
See comment in patch-src_common_compat__getopt.h. In addition, a
|
|
kludge is added here to get the test file to build, pending a new
|
|
release from upstream with the issue properly addressed.
|
|
|
|
--- src/common/compat_getopt_main.c.orig 2015-05-16 20:30:24.000000000 +0000
|
|
+++ src/common/compat_getopt_main.c
|
|
@@ -173,6 +173,8 @@ main(int argc, char * argv[])
|
|
progname);
|
|
}
|
|
|
|
+#define getopt_long_only getopt_long
|
|
+
|
|
/* parse all options from the command line */
|
|
while ((opt =
|
|
getopt_long_only(argc, argv, shortopts, longopts, &longind)) != -1)
|