summaryrefslogtreecommitdiff
path: root/libc/debian/patches/libc-getopt-const-char.patch
blob: a36a657d5b898799c8970df3ab2111792d4721b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: b/usr/src/head/getopt.h
===================================================================
--- a/usr/src/head/getopt.h
+++ b/usr/src/head/getopt.h
@@ -49,7 +49,7 @@ extern "C" {
 #define	optional_argument	2
 
 struct option {
-	char *name;	/* name of long option */
+	const char *name;	/* name of long option */
 	int has_arg;	/* whether option takes an argument */
 	int *flag;	/* if not NULL, set *flag to val when option found */
 	int val;	/* if flag is not NULL, value to set *flag to. */