aboutsummaryrefslogtreecommitdiffstats
path: root/db1-ast/mpool
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-10-26 18:50:49 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-10-26 18:50:49 +0000
commitf9db8abd4d1bfa16f4135638c600ba0eaadec083 (patch)
tree7d179763d95152f24ed90027acafdc363c2afcef /db1-ast/mpool
parent6b2aaaa721016826b533a71fb162df76db99fecc (diff)
Make it build and run on MacOS X
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1673 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'db1-ast/mpool')
-rwxr-xr-xdb1-ast/mpool/mpool.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/db1-ast/mpool/mpool.c b/db1-ast/mpool/mpool.c
index 80b02b93b..b09f801f5 100755
--- a/db1-ast/mpool/mpool.c
+++ b/db1-ast/mpool/mpool.c
@@ -316,6 +316,8 @@ mpool_sync(mp)
#undef mpool_put
#undef mpool_close
#undef mpool_sync
+
+#ifndef __APPLE__
#define weak_alias(original, alias) \
asm (".weak " #alias "\n" #alias " = " #original);
weak_alias (__mpool_open, mpool_open)
@@ -325,6 +327,7 @@ weak_alias (__mpool_get, mpool_get)
weak_alias (__mpool_put, mpool_put)
weak_alias (__mpool_close, mpool_close)
weak_alias (__mpool_sync, mpool_sync)
+#endif
/*
* mpool_bkt