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 | focaccia-qemu-22a2bdcbae5aa256eb3d4179b29f1699b62dc110.tar.gz focaccia-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
diff --git a/cmd.c b/cmd.c index 3c89a0527e..cc70311b9f 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; |