From 2d555ba15cc3c795c14962c7d5b5be69ee269a5a Mon Sep 17 00:00:00 2001 From: Kamil Rytarowski Date: Sat, 28 Nov 2015 10:01:05 +0100 Subject: [PATCH] netbsd: Improve handling of and headers NetBSD ships with strtod_l(3) in . Having strtol_l(3) doesn't imply to have . Generalize inclusion of and . --- configure.ac | 1 + src/pulsecore/core-util.c | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index abfb8d9..640be09 100644 --- a/configure.ac +++ b/configure.ac @@ -447,6 +447,7 @@ AC_CHECK_HEADERS_ONCE([sys/eventfd.h]) AC_CHECK_HEADERS_ONCE([execinfo.h]) AC_CHECK_HEADERS_ONCE([langinfo.h]) AC_CHECK_HEADERS_ONCE([regex.h pcreposix.h]) +AC_CHECK_HEADERS_ONCE([locale.h xlocale.h]) AM_CONDITIONAL(HAVE_SYS_EVENTFD_H, test "x$ac_cv_header_sys_eventfd_h" = "xyes") diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c index b5ddd3d..3d36993 100644 --- a/src/pulsecore/core-util.c +++ b/src/pulsecore/core-util.c @@ -53,9 +53,13 @@ #endif #ifdef HAVE_STRTOD_L +#ifdef HAVE_LOCALE_H #include +#endif +#ifdef HAVE_XLOCALE_H #include #endif +#endif #ifdef HAVE_SCHED_H #include @@ -106,7 +110,6 @@ #endif #ifdef __APPLE__ -#include #include #include #include -- 2.7.4