diff options
author | Tanu Kaskinen <tanu.kaskinen@linux.intel.com> | 2015-05-20 22:35:28 +0300 |
---|---|---|
committer | David Henningsson <david.henningsson@canonical.com> | 2015-09-07 14:54:31 +0200 |
commit | 83de5a0995f0f98217965dab78ffb02eb50fc0e7 (patch) | |
tree | 86cd301500aacac36039b8c6cae142ecff1f1ad0 | |
parent | 27d71c00d8d8bf07b5109dc016d53c7d8c3a1975 (diff) | |
download | pulseaudio-83de5a0995f0f98217965dab78ffb02eb50fc0e7.tar.gz |
core-util: include xlocale.h when using strtod_l()
Based on some googling, strtod_l() is defined in xlocale.h on BSD.
Glibc seems to define it in stdlib.h, but only if GNU extensions are
enabled (otherwise the function won't be available). So, this patch
should fix the use of strtod_l() on BSDs, but on other systems things
may or may not be still broken.
The original patch author is Jakob Fink <jfink@gmx.at>. He sent this
patch to the freebsd-gnome mailing list:
http://lists.freebsd.org/pipermail/freebsd-gnome/2015-April/032138.html
BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=90285
-rw-r--r-- | src/pulsecore/core-util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c index 824368a5a..ba3122143 100644 --- a/src/pulsecore/core-util.c +++ b/src/pulsecore/core-util.c @@ -54,6 +54,7 @@ #ifdef HAVE_STRTOD_L #include <locale.h> +#include <xlocale.h> #endif #ifdef HAVE_SCHED_H |