From aaa71a12636ca0eb45a024683fed654ad1518bf6 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 1 Oct 2007 10:26:45 +0200 Subject: Export symbols printf and the ones needed for getopt --- lib/getopt.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib') diff --git a/lib/getopt.c b/lib/getopt.c index c054e1365f..64d6ac1e15 100644 --- a/lib/getopt.c +++ b/lib/getopt.c @@ -18,6 +18,7 @@ */ #include +#include #include int opterr = 1; @@ -25,6 +26,11 @@ int optind = 1; int optopt; char *optarg; +EXPORT_SYMBOL(optind); +EXPORT_SYMBOL(opterr); +EXPORT_SYMBOL(optopt); +EXPORT_SYMBOL(optarg); + static int optindex = 1; /* option index in the current argv[] element */ static int nonopts = 0; /* number of nonopts found */ @@ -33,6 +39,7 @@ void getopt_reset(void) optind = opterr = optindex = 1; nonopts = 0; } +EXPORT_SYMBOL(getopt_reset); int getopt(int argc, char *argv[], char *optstring) { @@ -141,3 +148,4 @@ int getopt(int argc, char *argv[], char *optstring) optind++; return curopt; } +EXPORT_SYMBOL(getopt); -- cgit v1.2.3