netbsd: Improve handling of <locale> and <xlocale.h> headers

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>.
This commit is contained in:
Kamil Rytarowski 2015-11-28 10:01:05 +01:00 committed by David Henningsson
parent 04737989ec
commit 2d555ba15c
2 changed files with 5 additions and 1 deletions

View file

@ -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>