[libvirt] [PATCH] util: Move locale.h include from virutil to virstring

Martin Kletzander mkletzan at redhat.com
Thu Jun 22 12:36:17 UTC 2017


Commit 5c54d29aaeb7 forgot to do that when moving the only function
using it and it broke the build on some platforms.

Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
---

Notes:
    Pushed under the build-breaker rule

 src/util/virstring.c | 1 +
 src/util/virutil.c   | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/virstring.c b/src/util/virstring.c
index 1bd677723265..feea5be05198 100644
--- a/src/util/virstring.c
+++ b/src/util/virstring.c
@@ -24,6 +24,7 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <regex.h>
+#include <locale.h>

 #include "base64.h"
 #include "c-ctype.h"
diff --git a/src/util/virutil.c b/src/util/virutil.c
index d7e01d464268..e4de4caec91d 100644
--- a/src/util/virutil.c
+++ b/src/util/virutil.c
@@ -45,7 +45,6 @@
 #include <sys/ioctl.h>
 #include <string.h>
 #include <termios.h>
-#include <locale.h>

 #if WITH_DEVMAPPER
 # include <libdevmapper.h>
-- 
2.13.1




More information about the libvir-list mailing list