diff options
author | Blue Swirl | 2009-11-21 10:06:46 +0100 |
---|---|---|
committer | Blue Swirl | 2009-11-21 10:06:46 +0100 |
commit | 22a2bdcbae5aa256eb3d4179b29f1699b62dc110 (patch) | |
tree | b1900a27ae7a0a6af09a9d5d7af9a9afad0bdafa /cmd.c | |
parent | configure: Fix spelling in comment and rework the comment (diff) | |
download | qemu-22a2bdcbae5aa256eb3d4179b29f1699b62dc110.tar.gz qemu-22a2bdcbae5aa256eb3d4179b29f1699b62dc110.tar.xz qemu-22a2bdcbae5aa256eb3d4179b29f1699b62dc110.zip |
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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; |