summaryrefslogtreecommitdiff
path: root/posix
diff options
context:
space:
mode:
Diffstat (limited to 'posix')
-rw-r--r--posix/getopt.c4
-rw-r--r--posix/getopt_init.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/posix/getopt.c b/posix/getopt.c
index aa0c01ce59..47fdda8080 100644
--- a/posix/getopt.c
+++ b/posix/getopt.c
@@ -253,7 +253,9 @@ static int last_nonopt;
/* Bash 2.0 gives us an environment variable containing flags
indicating ARGV elements that should not be considered arguments. */
-char *__getopt_nonoption_flags;
+/* Defined in getopt_init.c */
+extern char *__getopt_nonoption_flags;
+
static int nonoption_flags_max_len;
static int nonoption_flags_len;
diff --git a/posix/getopt_init.c b/posix/getopt_init.c
index e90c9d7d8a..80b6f96254 100644
--- a/posix/getopt_init.c
+++ b/posix/getopt_init.c
@@ -29,8 +29,8 @@
#include "../stdio-common/_itoa.h"
-/* External variable to synchronize work. */
-extern char *__getopt_nonoption_flags;
+/* Variable to synchronize work. */
+char *__getopt_nonoption_flags;
extern pid_t __libc_pid;