提交 a882841b 编写于 作者: R Rich Felker

add public declaration for optreset under appropriate feature profiles

commit 030e5263 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.
上级 74244e5b
......@@ -176,6 +176,7 @@ long syscall(long, ...);
int execvpe(const char *, char *const [], char *const []);
int issetugid(void);
int getentropy(void *, size_t);
extern int optreset;
#endif
#ifdef _GNU_SOURCE
......
#define _BSD_SOURCE
#include <unistd.h>
#include <wchar.h>
#include <string.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册