[pulseaudio-discuss] [PATCH] netbsd: Improve handling of <locale> and <xlocale.h> headers
Kamil Rytarowski
n54 at gmx.com
Sat Dec 5 14:08:48 PST 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Ping!
This is still valid.
On 28.11.2015 10:01, Kamil Rytarowski wrote:
> NetBSD ships with strtod_l(3) in <stdlib.h>. Having strtol_l(3)
> doesn't imply to have <xlocale.h>. Generalize inclusion of
> <locale.h> and <xlocale.h>. --- 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 003673e..5b3ce7d
> 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 2099686..ee74280 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 <locale.h>
> +#endif +#ifdef HAVE_XLOCALE_H #include <xlocale.h> #endif +#endif
>
> #ifdef HAVE_SCHED_H #include <sched.h> @@ -106,7 +110,6 @@ #endif
>
> #ifdef __APPLE__ -#include <xlocale.h> #include <mach/mach_init.h>
> #include <mach/thread_act.h> #include <mach/thread_policy.h>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJWY2BtAAoJEEuzCOmwLnZsOOsQALGm+XbnmQIxvSi4+H4grUGC
4dJPYg/mKF5L7b4wLD26GpYXyyd8VnwX2jfBt41lutS53R8ZqLcHNaEJZhBKyXB7
Di38uXrdngGeZQthAiGHo4AL1jROue5Ktrhq6BkYHeu8P3CCCU9wrr2AScw0Y4yw
AsUIhZMQp26uqwxRUkiwOKMOsdjlWwxGbmD5WjXirure605Uf3eQXQ2RaDi6WVK5
JH8ZlP43Hat6dqnxiMBDnFJrsdnAf/KpXfX5cUL2vCNxxvGD3ITPGAY+s4C2Z3yc
J5LwOf2CZwEbzmGjx6oDg2DKYVvDnU1qzv1ClYjBS5AI8Cj0gcFNVbJ/nZJLXMyt
4L8CHv4KUldO61hSjWcWB6q2Lhomu/qGgVlP0IgnA+fzF/nDoVgCXDkQ9JXeHq6r
a13yX24U18R+MyVjLubEeGlsxrSDtzih57U5cmyHtB/cKTIIEqVhRdfoiSRb4wy9
i+iEDVvz4kdtD5ZtntLfC7PGKJvK8Oz4dMU+EWAZvM7gKg4bvTby32n9XLKCsSmQ
93QmswBk0Ad84UJafeu5ih9wpObQgkZ6rmzCAMeWC2KVfkf0b12FoaeyIoYfd+Wx
lVBtUJGUaXt18RaTBjIF8uneatAOAupNaG56X+T5xCZ8MF5vuOHg2045tCqquM67
/6csm1m2wHExQKQnVY9s
=Pzy2
-----END PGP SIGNATURE-----
More information about the pulseaudio-discuss
mailing list