From: Jim Fehlig Date: Thu, 8 Aug 2013 19:53:25 +0000 (-0600) Subject: build: fix compilation of virt-login-shell.c X-Git-Tag: CVE-2013-5651~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26b8a4dd23716f42f6e3fd5ff41fba30598689e5;p=thirdparty%2Flibvirt.git build: fix compilation of virt-login-shell.c 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) --- diff --git a/tools/virt-login-shell.c b/tools/virt-login-shell.c index ffbc713454..b8f1a28a8e 100644 --- a/tools/virt-login-shell.c +++ b/tools/virt-login-shell.c @@ -27,6 +27,7 @@ #include #include #include +#include #include "internal.h" #include "virerror.h"