summaryrefslogtreecommitdiff
path: root/include/asterisk/localtime.h
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2010-06-08 22:45:16 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2010-06-08 22:45:16 +0000
commit3c26b511e03ac9dde860787f2cf3cf2ad06df495 (patch)
tree22560e41c6bd633476d35dbd1a35e10e4f808891 /include/asterisk/localtime.h
parentf3a9392542c1b91fde8e9a2f38b6e43f253be109 (diff)
Fix build on Mac OS X (and maybe FreeBSD, too)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@269119 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/localtime.h')
-rw-r--r--include/asterisk/localtime.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asterisk/localtime.h b/include/asterisk/localtime.h
index ed5fe36b9..f25e65832 100644
--- a/include/asterisk/localtime.h
+++ b/include/asterisk/localtime.h
@@ -24,8 +24,10 @@
#ifndef _ASTERISK_LOCALTIME_H
#define _ASTERISK_LOCALTIME_H
-#ifdef HAVE_NEWLOCALE
+#ifdef HAVE_LOCALE_T_IN_LOCALE_H
#include <locale.h>
+#elif defined(HAVE_LOCALE_T_IN_XLOCALE_H)
+#include <xlocale.h>
#else
typedef void * locale_t;
#endif