summaryrefslogtreecommitdiff
path: root/tools/include/nolibc/getopt.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/include/nolibc/getopt.h')
-rw-r--r--tools/include/nolibc/getopt.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/include/nolibc/getopt.h b/tools/include/nolibc/getopt.h
index 5fd06c9702e9..217abb95264b 100644
--- a/tools/include/nolibc/getopt.h
+++ b/tools/include/nolibc/getopt.h
@@ -5,6 +5,9 @@
* Copyright (C) 2025 Thomas Weißschuh <linux@weissschuh.net>
*/
+/* make sure to include all global symbols */
+#include "nolibc.h"
+
#ifndef _NOLIBC_GETOPT_H
#define _NOLIBC_GETOPT_H
@@ -95,7 +98,4 @@ int getopt(int argc, char * const argv[], const char *optstring)
return c;
}
-/* make sure to include all global symbols */
-#include "nolibc.h"
-
#endif /* _NOLIBC_GETOPT_H */