From 93f93f516125b602f2aa29d167fc68cbed9d61b4 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Fri, 27 Jan 2012 11:16:20 -0700 Subject: [PATCH] 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. --- .gitignore | 1 + tools/virt-host-validate.c | 1 + 2 files changed, 2 insertions(+) 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"