summaryrefslogtreecommitdiffstats
path: root/src/core/exec.c
diff options
context:
space:
mode:
authorMichael Brown2006-12-19 17:27:15 +0100
committerMichael Brown2006-12-19 17:27:15 +0100
commit70d20c4e7a156e3161b2578d3b048ae45f23f02a (patch)
tree74b001441cfbfd11632fa1f75362bbe822797398 /src/core/exec.c
parentUse current attributes when erasing. (diff)
downloadipxe-70d20c4e7a156e3161b2578d3b048ae45f23f02a.tar.gz
ipxe-70d20c4e7a156e3161b2578d3b048ae45f23f02a.tar.xz
ipxe-70d20c4e7a156e3161b2578d3b048ae45f23f02a.zip
Use common symbols to avoid dragging in getopt.o unless a getopt-using
command is linked in.
Diffstat (limited to 'src/core/exec.c')
-rw-r--r--src/core/exec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/exec.c b/src/core/exec.c
index 73f111ee..3340d18a 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
*