aboutsummaryrefslogtreecommitdiff
path: root/lib/mlibc/options/bsd/generic/getopt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mlibc/options/bsd/generic/getopt.cpp')
-rw-r--r--lib/mlibc/options/bsd/generic/getopt.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/mlibc/options/bsd/generic/getopt.cpp b/lib/mlibc/options/bsd/generic/getopt.cpp
new file mode 100644
index 0000000..cc124ef
--- /dev/null
+++ b/lib/mlibc/options/bsd/generic/getopt.cpp
@@ -0,0 +1,8 @@
+#include <getopt.h>
+
+#if __MLIBC_GLIBC_OPTION
+
+int __optreset = 0;
+extern int optreset __attribute__((__weak__, __alias__("__optreset")));
+
+#endif //__MLIBC_GLIBC_OPTION