提交 93f93f51 编写于 作者: E Eric Blake

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 <locale.h>.
* .gitignore: Ignore built executable.
上级 83ed0301
......@@ -79,6 +79,7 @@
/tests/qemuxmlnstest
/tests/shunloadtest
/tests/virhashtest
/tools/virt-host-validate
/update.log
Makefile
Makefile.in
......
......@@ -25,6 +25,7 @@
#include <stdlib.h>
#include <gettext.h>
#include <getopt.h>
#include <locale.h>
#include "internal.h"
#include "configmake.h"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册