summaryrefslogtreecommitdiff
path: root/devel/capstone/patches/patch-cstool_getopt.h
blob: 1fea24699bfec73d22fda76fd32c72c3bdbc243a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-cstool_getopt.h,v 1.1 2022/03/26 19:25:51 tnn Exp $

Use the standard optarg prototype.

--- cstool/getopt.h.orig	2020-05-08 10:03:30.000000000 +0000
+++ cstool/getopt.h
@@ -6,7 +6,7 @@ int opterr = 1, /* if error message shou
 optind = 1, /* index into parent argv vector */
 optopt, /* character checked for validity */
 optreset; /* reset getopt */
-const char *optarg; /* argument associated with option */
+extern char *optarg; /* argument associated with option */
 
 #define BADCH (int)'?'
 #define BADARG (int)':'