mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-13 08:58:33 +03:00
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 <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
f123412b53
commit
4bb1a0e488
@ -30,6 +30,10 @@
|
||||
#include <signal.h>
|
||||
|
||||
#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 <readline/readline.h>
|
||||
# include <readline/history.h>
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user