diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-11-21 09:06:46 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-11-21 09:06:46 +0000 |
commit | 22a2bdcbae5aa256eb3d4179b29f1699b62dc110 (patch) | |
tree | b1900a27ae7a0a6af09a9d5d7af9a9afad0bdafa /cmd.c | |
parent | 3a3fb96d0d9e3331e3beb672108ec18a6d3d8c1c (diff) | |
download | qemu-22a2bdcbae5aa256eb3d4179b29f1699b62dc110.zip qemu-22a2bdcbae5aa256eb3d4179b29f1699b62dc110.tar.gz qemu-22a2bdcbae5aa256eb3d4179b29f1699b62dc110.tar.bz2 |
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; |