From 6d53753c6614a3b4d151fbf38d7baa700b088bb1 Mon Sep 17 00:00:00 2001 From: daid Date: Tue, 21 Jul 2020 10:21:33 +0200 Subject: [PATCH] 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. --- src/extern/getopt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extern/getopt.c b/src/extern/getopt.c index 118fd11d..c0bf371b 100644 --- a/src/extern/getopt.c +++ b/src/extern/getopt.c @@ -31,7 +31,7 @@ #include #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) {