From: Eric Blake Date: Fri, 27 Jan 2012 18:16:20 +0000 (-0700) Subject: build: fix missing include X-Git-Tag: v0.9.10-rc1~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93f93f516125b602f2aa29d167fc68cbed9d61b4;p=thirdparty%2Flibvirt.git build: fix missing include 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 . * .gitignore: Ignore built executable. --- diff --git a/.gitignore b/.gitignore index 2533fced83..d1a42263a1 100644 --- a/.gitignore +++ b/.gitignore @@ -79,6 +79,7 @@ /tests/qemuxmlnstest /tests/shunloadtest /tests/virhashtest +/tools/virt-host-validate /update.log Makefile Makefile.in diff --git a/tools/virt-host-validate.c b/tools/virt-host-validate.c index 3893ba3a9d..cdf8302ca9 100644 --- a/tools/virt-host-validate.c +++ b/tools/virt-host-validate.c @@ -25,6 +25,7 @@ #include #include #include +#include #include "internal.h" #include "configmake.h"