diff --git a/Makefile b/Makefile index bc3dc1a56a..c3eeac4b77 100755 --- a/Makefile +++ b/Makefile @@ -207,6 +207,7 @@ LIBS+=-lresolv #-lnjamd endif ifeq (${OSARCH},Darwin) LIBS+=-lresolv +CFLAGS+=-D__OSX__ endif ifeq (${OSARCH},FreeBSD) LIBS+=-lcrypto diff --git a/config.c b/config.c index baba870bb1..31f4381580 100755 --- a/config.c +++ b/config.c @@ -19,6 +19,9 @@ #include #define AST_INCLUDE_GLOB 1 #ifdef AST_INCLUDE_GLOB +#ifdef __OSX__ +#define GLOB_ABORTED GLOB_ABEND +#endif # include #endif #include diff --git a/pbx/pbx_dundi.c b/pbx/pbx_dundi.c index b68a1050ad..602d05605a 100755 --- a/pbx/pbx_dundi.c +++ b/pbx/pbx_dundi.c @@ -39,7 +39,7 @@ #include #include #include -#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(SOLARIS) +#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(SOLARIS) || defined(__OSX__) #include #include #endif @@ -47,7 +47,7 @@ #include #include #include -#if defined(__FreeBSD__) || defined(__NetBSD__) +#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OSX__) #include #include #endif