[PATCH libvirt-sandbox] include <locale.h> where needed.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For some reason this does not build out of the box for me as I get
errors about 'setlocale()' being used without declaration.  This patch
adds the appropriate header to the appropriate files.

Signed-off-by: Ian Main <imain@xxxxxxxxxx>
---
 bin/virt-sandbox-service-util.c               | 1 +
 bin/virt-sandbox.c                            | 1 +
 libvirt-sandbox/libvirt-sandbox-init-common.c | 1 +
 3 files changed, 3 insertions(+)

diff --git a/bin/virt-sandbox-service-util.c b/bin/virt-sandbox-service-util.c
index 83ff17c..c7757fd 100644
--- a/bin/virt-sandbox-service-util.c
+++ b/bin/virt-sandbox-service-util.c
@@ -25,6 +25,7 @@
 
 #include <libvirt-sandbox/libvirt-sandbox.h>
 #include <glib/gi18n.h>
+#include <locale.h>
 
 #define STREQ(x,y) (strcmp(x,y) == 0)
 
diff --git a/bin/virt-sandbox.c b/bin/virt-sandbox.c
index b16217b..b9d6825 100644
--- a/bin/virt-sandbox.c
+++ b/bin/virt-sandbox.c
@@ -24,6 +24,7 @@
 
 #include <libvirt-sandbox/libvirt-sandbox.h>
 #include <glib/gi18n.h>
+#include <locale.h>
 
 static gboolean do_close(GVirSandboxConsole *con G_GNUC_UNUSED,
                          gboolean error G_GNUC_UNUSED,
diff --git a/libvirt-sandbox/libvirt-sandbox-init-common.c b/libvirt-sandbox/libvirt-sandbox-init-common.c
index 262f4e1..d3c21c2 100644
--- a/libvirt-sandbox/libvirt-sandbox-init-common.c
+++ b/libvirt-sandbox/libvirt-sandbox-init-common.c
@@ -44,6 +44,7 @@
 #include <unistd.h>
 #include <limits.h>
 #include <grp.h>
+#include <locale.h>
 
 #include "libvirt-sandbox-rpcpacket.h"
 
-- 
1.8.1.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]