musl: add getopt support for non-option arguments
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 19 Nov 2014 09:21:02 +0000 (09:21 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 19 Nov 2014 09:21:02 +0000 (09:21 +0000)
commitba368bef563ad58f6886f48dfcd6c1cebdd2faaf
tree2173535988b704728036a59947f7b9d1008b94c6
parent220869d00e51d7da19f1fb4caa3bff6846134623
musl: add getopt support for non-option arguments

musl libc doesn't support the GNU getopt extension to parse non-option
arguments when the optstring starts with '-'.

This extension is used by some utilities, notably iptables, that
currently return with errors even with perfectly valid invocations.

The patch adds the code needed by getopt.c and getopt_long.c to
implement that extension.

Signed-off-by: Gianluca Anzolin <gianluca@sottospazio.it>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43309 3c298f89-4303-0410-b956-a3cf2f4a3e73
toolchain/musl/patches/120-getopt_non-option-arguments_fix.patch [new file with mode: 0644]