mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
262551f774
commit
b9103e62e4
@ -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 @@
|
|||||||
#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 @@
|
|||||||
|
|
||||||
#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 @@
|
|||||||
#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>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user