Make the local variables of getopt static.

While compiling for empscripten there is a duplicate symbol conflict with these two variables. And as they are only used locally, and do not need a symbol exported they can just be static.
This commit is contained in:
daid
2020-07-21 10:21:33 +02:00
committed by GitHub
parent 79f293c3d7
commit 6d53753c66

2
src/extern/getopt.c vendored
View File

@@ -31,7 +31,7 @@
#include <string.h> #include <string.h>
#include "extern/getopt.h" #include "extern/getopt.h"
int __optpos, __optreset; static int __optpos, __optreset;
void musl__getopt_msg(const char *a, const char *b, const char *c, size_t l) void musl__getopt_msg(const char *a, const char *b, const char *c, size_t l)
{ {