From c6fe1de30ea95cbcf24a9f708e7cb838e35a4e41 Mon Sep 17 00:00:00 2001 From: Liav A Date: Fri, 29 Jan 2021 16:10:41 +0200 Subject: [PATCH] LibC: Expose various option variables for later usage These variables are used by the dmidecode utility to parse the commandline arguments that were specified by the user. --- Userland/Libraries/LibC/getopt.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Userland/Libraries/LibC/getopt.h b/Userland/Libraries/LibC/getopt.h index 0aaddf2820..3eac14d275 100644 --- a/Userland/Libraries/LibC/getopt.h +++ b/Userland/Libraries/LibC/getopt.h @@ -41,6 +41,11 @@ struct option { int val; }; +extern int opterr; +extern int optopt; +extern int optind; +extern int optreset; +extern char* optarg; int getopt_long(int argc, char** argv, const char* short_options, const struct option* long_options, int* out_long_option_index); __END_DECLS