Merge OSX compatibility patch (bug #1940)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3331 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2004-06-28 20:10:28 +00:00
parent 9b6bd35ed3
commit 09c41b415d
5 changed files with 11 additions and 6 deletions

View File

@@ -50,6 +50,8 @@ static char sccsid[] = "@(#)mpool.c 8.5 (Berkeley) 7/26/94";
#define __MPOOLINTERFACE_PRIVATE
#include <mpool.h>
#undef __APPLE__
#ifndef __APPLE__
#define mpool_open __mpool_open
#define mpool_filter __mpool_filter
@@ -311,6 +313,8 @@ mpool_sync(mp)
return (fsync(mp->fd) ? RET_ERROR : RET_SUCCESS);
}
#define __APPLE__
#ifndef __APPLE__
#undef mpool_open
#undef mpool_filter