diff options
author | Timo Teräs <timo.teras@iki.fi> | 2014-12-12 11:07:45 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2014-12-12 11:08:23 +0200 |
commit | 9be3c06726e81ee7ca393d2232bdb1f04070b40d (patch) | |
tree | cdc6f31b80d81d2bbb6a6ab3025a83aa7e09359b /main/musl/0022-accept-null-longopts-pointer-in-getopt_long.patch | |
parent | 25967063659719b2c6979fb5fb774382873d2dba (diff) | |
download | aports-9be3c06726e81ee7ca393d2232bdb1f04070b40d.tar.bz2 aports-9be3c06726e81ee7ca393d2232bdb1f04070b40d.tar.xz |
Revert "main/musl: use upstream getopt_long"
This reverts commit 21d10d3c2c3687b1475a4616ec9f341e3931f05b.
This is broken still, and was pushed by accident.
Diffstat (limited to 'main/musl/0022-accept-null-longopts-pointer-in-getopt_long.patch')
-rw-r--r-- | main/musl/0022-accept-null-longopts-pointer-in-getopt_long.patch | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/main/musl/0022-accept-null-longopts-pointer-in-getopt_long.patch b/main/musl/0022-accept-null-longopts-pointer-in-getopt_long.patch deleted file mode 100644 index 7ac5486e6c..0000000000 --- a/main/musl/0022-accept-null-longopts-pointer-in-getopt_long.patch +++ /dev/null @@ -1,27 +0,0 @@ -From b4ef1830b7863bfba1da4bdad56a20ef398672a8 Mon Sep 17 00:00:00 2001 -From: Rich Felker <dalias@aerifal.cx> -Date: Thu, 11 Dec 2014 01:07:02 -0500 -Subject: [PATCH] accept null longopts pointer in getopt_long - -this is an undocumented feature of GNU getopt_long that the BSD -version also mimics, and is reportedly needed by some programs. ---- - src/misc/getopt_long.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/misc/getopt_long.c b/src/misc/getopt_long.c -index 469ee92..c3cf7f9 100644 ---- a/src/misc/getopt_long.c -+++ b/src/misc/getopt_long.c -@@ -52,7 +52,7 @@ static int __getopt_long(int argc, char *const *argv, const char *optstring, con - static int __getopt_long_core(int argc, char *const *argv, const char *optstring, const struct option *longopts, int *idx, int longonly) - { - -- if (argv[optind][0] == '-' && -+ if (longopts && argv[optind][0] == '-' && - ((longonly && argv[optind][1]) || - (argv[optind][1] == '-' && argv[optind][2]))) - { --- -2.2.0 - |