summaryrefslogtreecommitdiff
path: root/libc/debian/patches
diff options
context:
space:
mode:
Diffstat (limited to 'libc/debian/patches')
-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