mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-08 16:07:39 -06:00
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>
This commit is contained in:
parent
3a3fb96d0d
commit
22a2bdcbae
2 changed files with 87 additions and 89 deletions
3
cmd.c
3
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue