mirror of git://git.musl-libc.org/musl
add public declaration for optreset under appropriate feature profiles
commit 030e526392
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.
This commit is contained in:
parent
74244e5b3e
commit
a882841baf
|
@ -176,6 +176,7 @@ long syscall(long, ...);
|
||||||
int execvpe(const char *, char *const [], char *const []);
|
int execvpe(const char *, char *const [], char *const []);
|
||||||
int issetugid(void);
|
int issetugid(void);
|
||||||
int getentropy(void *, size_t);
|
int getentropy(void *, size_t);
|
||||||
|
extern int optreset;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _GNU_SOURCE
|
#ifdef _GNU_SOURCE
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#define _BSD_SOURCE
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <wchar.h>
|
#include <wchar.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
Loading…
Reference in New Issue