diff options
| author | Rich Felker <dalias@aerifal.cx> | 2019-08-30 17:48:47 -0400 | 
|---|---|---|
| committer | Rich Felker <dalias@aerifal.cx> | 2019-08-30 17:48:47 -0400 | 
| commit | a882841baf42e6a8b74cc33a239b84a9a79493db (patch) | |
| tree | 7f4ca33c1af09ef9d51fda25d6ffea75bd6dfde7 /src/misc/getopt.c | |
| parent | 74244e5b3ed4a61d99c5fc0967b69e5c9a753456 (diff) | |
| download | musl-a882841baf42e6a8b74cc33a239b84a9a79493db.tar.gz | |
add public declaration for optreset under appropriate feature profiles
commit 030e52639248ac8417a4934298caa78c21a228d1 added optreset, a BSD
extension to getopt duplicating the functionality (also an extension)
of setting optind to 0, but failed to provide a public declaration for
it. according to the BSD documentation and headers, the application is
not supposed to need to provide its own declaration.
Diffstat (limited to 'src/misc/getopt.c')
| -rw-r--r-- | src/misc/getopt.c | 1 | 
1 files changed, 1 insertions, 0 deletions
diff --git a/src/misc/getopt.c b/src/misc/getopt.c index 864d52cd..c3f66995 100644 --- a/src/misc/getopt.c +++ b/src/misc/getopt.c @@ -1,3 +1,4 @@ +#define _BSD_SOURCE  #include <unistd.h>  #include <wchar.h>  #include <string.h>  | 
