summaryrefslogtreecommitdiff
path: root/utils/extconf.c
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2010-06-08 06:16:43 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2010-06-08 06:16:43 +0000
commit8872926df7acdfa78530049a0dc63900590c3123 (patch)
treeaf3d87752f883644cb1f5ea382d1988a71605f31 /utils/extconf.c
parent857814f4354fb26255d4d5db6e06e90749e9bad0 (diff)
Fix trunk build on Mac OS X.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@268896 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'utils/extconf.c')
-rw-r--r--utils/extconf.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/utils/extconf.c b/utils/extconf.c
index ff17b9663..992126728 100644
--- a/utils/extconf.c
+++ b/utils/extconf.c
@@ -6255,3 +6255,13 @@ int localized_pbx_load_module(void)
return 0;
}
+/* For platforms which don't have pthread_rwlock_timedrdlock() */
+struct timeval ast_tvnow(void);
+
+struct timeval ast_tvnow(void)
+{
+ struct timeval t;
+ gettimeofday(&t, NULL);
+ return t;
+}
+