]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
build: fix missing include
authorEric Blake <eblake@redhat.com>
Fri, 27 Jan 2012 18:16:20 +0000 (11:16 -0700)
committerEric Blake <eblake@redhat.com>
Fri, 27 Jan 2012 18:18:35 +0000 (11:18 -0700)
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>.
* .gitignore: Ignore built executable.

.gitignore
tools/virt-host-validate.c

index 2533fced83fd93539e980b55277f0cedace8a6a1..d1a42263a1563044d5fb1e1e12c34fd685ac9e1c 100644 (file)
@@ -79,6 +79,7 @@
 /tests/qemuxmlnstest
 /tests/shunloadtest
 /tests/virhashtest
+/tools/virt-host-validate
 /update.log
 Makefile
 Makefile.in
index 3893ba3a9dbd4a1242f8863f3f654f1ec7e6f48a..cdf8302ca9f06414cc35c3f0fbc95343c19f9b5d 100644 (file)
@@ -25,6 +25,7 @@
 #include <stdlib.h>
 #include <gettext.h>
 #include <getopt.h>
+#include <locale.h>
 
 #include "internal.h"
 #include "configmake.h"