Need to include xlocale.h on Darwin for strtod_l

This fixes the build of gstrfuncs.c on Darwin.
This commit is contained in:
Kristian Rietveld 2011-11-09 08:32:33 +01:00
parent fb95c20c96
commit f218353e04
2 changed files with 7 additions and 0 deletions

View File

@ -913,6 +913,8 @@ AC_CHECK_HEADERS([sys/mount.h sys/sysctl.h], [], [],
#endif
])
AC_CHECK_HEADERS([xlocale.h])
# check for structure fields
AC_CHECK_MEMBERS([struct stat.st_mtimensec, struct stat.st_mtim.tv_nsec, struct stat.st_atimensec, struct stat.st_atim.tv_nsec, struct stat.st_ctimensec, struct stat.st_ctim.tv_nsec])
AC_CHECK_MEMBERS([struct stat.st_blksize, struct stat.st_blocks, struct statfs.f_fstypename, struct statfs.f_bavail],,, [#include <sys/types.h>

View File

@ -39,6 +39,11 @@
#include <errno.h>
#include <ctype.h> /* For tolower() */
#ifdef HAVE_XLOCALE_H
/* Needed on BSD/OS X for e.g. strtod_l */
#include <xlocale.h>
#endif
#ifdef G_OS_WIN32
#include <windows.h>
#endif