From 70d20c4e7a156e3161b2578d3b048ae45f23f02a Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 19 Dec 2006 16:27:15 +0000 Subject: Use common symbols to avoid dragging in getopt.o unless a getopt-using command is linked in. --- src/core/exec.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/exec.c') diff --git a/src/core/exec.c b/src/core/exec.c index 73f111eed..3340d18a6 100644 --- a/src/core/exec.c +++ b/src/core/exec.c @@ -36,6 +36,10 @@ static struct command commands[0] __table_start ( commands ); static struct command commands_end[0] __table_end ( commands ); +/* Avoid dragging in getopt.o unless a command really uses it */ +int optind; +int nextchar; + /** * Execute command * -- cgit v1.2.3-55-g7522