1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-10-21 15:33:53 +03:00

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.
This commit is contained in:
Eric Blake
2012-01-27 11:16:20 -07:00
parent 83ed03010b
commit 93f93f5161
2 changed files with 2 additions and 0 deletions

View File

@@ -25,6 +25,7 @@
#include <stdlib.h>
#include <gettext.h>
#include <getopt.h>
#include <locale.h>
#include "internal.h"
#include "configmake.h"