shithub: rgbds

Download patch

ref: cf80293d9b2c96bc8b5121d65ddaa8ffa628ceed
parent: 79f293c3d70f58a7810ed36d6ef28353595011f2
parent: 6d53753c6614a3b4d151fbf38d7baa700b088bb1
author: Eldred Habert <[email protected]>
date: Tue Jul 21 09:11:30 EDT 2020

Merge pull request #540 from daid/patch-1

Make the local variables of getopt 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)
 {