summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2016-01-15 13:58:53 +0300
committerIgor Pashev <pashev.igor@gmail.com>2016-01-15 13:58:53 +0300
commit48f9f10d752fb500b8eeae05821093396ba2c73b (patch)
tree4aa05fabf66ff98243d4f0c4772c9a2a1ac0fa2c
parentbe48aa5fdd8d10973a6f938f84ff125c4cecf732 (diff)
downloadillumos-packaging-48f9f10d752fb500b8eeae05821093396ba2c73b.tar.gz
getopt: option.name is const char *
-rw-r--r--libc/debian/patches/libc-getopt-const-char.patch13
-rw-r--r--libc/debian/patches/series1
2 files changed, 14 insertions, 0 deletions
diff --git a/libc/debian/patches/libc-getopt-const-char.patch b/libc/debian/patches/libc-getopt-const-char.patch
new file mode 100644
index 0000000..24a69c4
--- /dev/null
+++ b/libc/debian/patches/libc-getopt-const-char.patch
@@ -0,0 +1,13 @@
+Index: libc/usr/src/head/getopt.h
+===================================================================
+--- libc.orig/usr/src/head/getopt.h
++++ libc/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. */
diff --git a/libc/debian/patches/series b/libc/debian/patches/series
index c6fa8fe..82e2ada 100644
--- a/libc/debian/patches/series
+++ b/libc/debian/patches/series
@@ -130,3 +130,4 @@ libnsl-netname.patch
localeimpl-getenv.patch
libm-as.patch
libm-fgnu89-inline.patch
+libc-getopt-const-char.patch