ref: 6d53753c6614a3b4d151fbf38d7baa700b088bb1
parent: 79f293c3d70f58a7810ed36d6ef28353595011f2
author: daid <[email protected]>
date: Tue Jul 21 06:21:33 EDT 2020
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.
--- a/src/extern/getopt.c
+++ b/src/extern/getopt.c
@@ -31,7 +31,7 @@
#include <string.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)
{