summaryrefslogtreecommitdiff
path: root/cmd.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-11-21 09:06:46 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-11-21 09:06:46 +0000
commit22a2bdcbae5aa256eb3d4179b29f1699b62dc110 (patch)
treeb1900a27ae7a0a6af09a9d5d7af9a9afad0bdafa /cmd.c
parent3a3fb96d0d9e3331e3beb672108ec18a6d3d8c1c (diff)
Fix OpenBSD build of qemu-io
GCC 3.3.5 generates warnings for static forward declarations of data, so rearrange code to use static forward declarations of functions instead. Use <getopt.h> for optind instead of local definition. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'cmd.c')
-rw-r--r--cmd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd.c b/cmd.c
index 3c89a0527..cc70311b9 100644
--- a/cmd.c
+++ b/cmd.c
@@ -21,13 +21,12 @@
#include <ctype.h>
#include <errno.h>
#include <sys/time.h>
+#include <getopt.h>
#include "cmd.h"
#define _(x) x /* not gettext support yet */
-extern int optind;
-
/* from libxcmd/command.c */
cmdinfo_t *cmdtab;