]> xenbits.xensource.com Git - people/dariof/libvirt.git/commitdiff
build: fix compilation of virt-login-shell.c
authorJim Fehlig <jfehlig@suse.com>
Thu, 8 Aug 2013 19:53:25 +0000 (13:53 -0600)
committerJim Fehlig <jfehlig@suse.com>
Thu, 8 Aug 2013 19:53:25 +0000 (13:53 -0600)
virt-login-shell.c was failing to compile with

CC       virt_login_shell-virt-login-shell.o
virt-login-shell.c: In function 'main':
virt-login-shell.c:205:5: error: implicit declaration of function 'setlocale' [-Werror=implicit-function-declaration]
virt-login-shell.c:205:5: error: nested extern declaration of 'setlocale' [-Werror=nested-externs]
virt-login-shell.c:205:20: error: 'LC_ALL' undeclared (first use in this function)

tools/virt-login-shell.c

index ffbc713454543f918cf6fe38051ce24151f030d4..b8f1a28a8e31560213fe6c2510819fd7e64810f7 100644 (file)
@@ -27,6 +27,7 @@
 #include <errno.h>
 #include <stdlib.h>
 #include <fnmatch.h>
+#include <locale.h>
 
 #include "internal.h"
 #include "virerror.h"