From 22a2bdcbae5aa256eb3d4179b29f1699b62dc110 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sat, 21 Nov 2009 09:06:46 +0000 Subject: 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 for optind instead of local definition. Signed-off-by: Blue Swirl --- cmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cmd.c') diff --git a/cmd.c b/cmd.c index 3c89a0527..cc70311b9 100644 --- a/cmd.c +++ b/cmd.c @@ -21,13 +21,12 @@ #include #include #include +#include #include "cmd.h" #define _(x) x /* not gettext support yet */ -extern int optind; - /* from libxcmd/command.c */ cmdinfo_t *cmdtab; -- cgit v1.2.3