From: Michal Privoznik Date: Wed, 2 Sep 2020 14:37:04 +0000 (+0200) Subject: vsh: Define HAVE_STDARG_H before including readline X-Git-Tag: v6.8.0-rc1~306 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bb1a0e4889ce7853cfa76249c295eebbbca50ab;p=thirdparty%2Flibvirt.git vsh: Define HAVE_STDARG_H before including readline As it turned out my previous commits which switched from HAVE_ to WITH_ and dropped stdarg.h detection were a bit too aggressive. Because of reasons described in 9ea3424a178 we need to define HAVE_STDARG_H before including readline otherwise macos build fails. Honestly, I still don't fully understand the problem so I am not going to bother you with "explanation". Signed-off-by: Michal Privoznik Reviewed-by: Ján Tomko --- diff --git a/tools/vsh.c b/tools/vsh.c index 2511089e6e..ef2a3f62d7 100644 --- a/tools/vsh.c +++ b/tools/vsh.c @@ -30,6 +30,10 @@ #include #if WITH_READLINE +/* In order to have proper rl_message declaration with older + * versions of readline, we have to declare this. See 9ea3424a178 + * for more info. */ +# define HAVE_STDARG_H # include # include #endif