提交 b9103e62 编写于 作者: D Daniel P. Berrangé

src: optionally include xlocale.h header

On macOS some definitions are in xlocale.h, instead of in
locale.h. GNULIB hides this difference by making the latter
include the former.
Reviewed-by: NPavel Hrdina <phrdina@redhat.com>
Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
上级 262551f7
...@@ -399,6 +399,7 @@ AC_CHECK_HEADERS([\ ...@@ -399,6 +399,7 @@ AC_CHECK_HEADERS([\
sys/syscall.h \ sys/syscall.h \
sys/sysctl.h \ sys/sysctl.h \
sys/ucred.h \ sys/ucred.h \
xlocale.h \
]) ])
dnl Check whether endian provides handy macros. dnl Check whether endian provides handy macros.
AC_CHECK_DECLS([htole64], [], [], [[#include <endian.h>]]) AC_CHECK_DECLS([htole64], [], [], [[#include <endian.h>]])
......
...@@ -21,6 +21,9 @@ ...@@ -21,6 +21,9 @@
#include <config.h> #include <config.h>
#include <locale.h> #include <locale.h>
#ifdef HAVE_XLOCALE_H
# include <xlocale.h>
#endif
#include "configmake.h" #include "configmake.h"
#include "internal.h" #include "internal.h"
......
...@@ -20,6 +20,9 @@ ...@@ -20,6 +20,9 @@
#include <glib/gprintf.h> #include <glib/gprintf.h>
#include <locale.h> #include <locale.h>
#ifdef HAVE_XLOCALE_H
# include <xlocale.h>
#endif
#include "virstring.h" #include "virstring.h"
#include "virthread.h" #include "virthread.h"
......
...@@ -19,6 +19,9 @@ ...@@ -19,6 +19,9 @@
#include <config.h> #include <config.h>
#include <locale.h> #include <locale.h>
#ifdef HAVE_XLOCALE_H
# include <xlocale.h>
#endif
#include <wchar.h> #include <wchar.h>
#include <wctype.h> #include <wctype.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册