Fix a build failure:
virt-host-validate.c: In function 'main':
virt-host-validate.c:82:5: error: implicit declaration of function 'setlocale'
[-Werror=implicit-function-declaration]
virt-host-validate.c:82:5: error: nested extern declaration of 'setlocale'
[-Werror=nested-externs]
virt-host-validate.c:82:20: error: 'LC_ALL' undeclared (first use in this
function)
* tools/virt-host-validate.c: Add <locale.h>.
---
Pushing under the build-breaker rule.
tools/virt-host-validate.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/tools/virt-host-validate.c b/tools/virt-host-validate.c
index 3893ba3..cdf8302 100644
--- a/tools/virt-host-validate.c
+++ b/tools/virt-host-validate.c
@@ -25,6 +25,7 @@
#include <stdlib.h>
#include <gettext.h>
#include <getopt.h>
+#include <locale.h>
#include "internal.h"
#include "configmake.h"
--
1.7.7.6
Show replies by date