diff options
author | Mark Spencer <markster@digium.com> | 2004-06-04 15:44:14 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-06-04 15:44:14 +0000 |
commit | 103bb4a33480fe9f7e484a851deaef458a40a69b (patch) | |
tree | f162578b4f4db311cb01a087e412ca2a84c24d63 /res | |
parent | aa2795cc46ec5f9b3ec85f90990e72a67e164627 (diff) |
Enhancements for zaptel+bsd (bug #1781)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3143 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res')
-rwxr-xr-x | res/Makefile | 1 | ||||
-rwxr-xr-x | res/res_musiconhold.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/res/Makefile b/res/Makefile index 242a06163..32e42a2e2 100755 --- a/res/Makefile +++ b/res/Makefile @@ -17,6 +17,7 @@ CRYPTO_LIBS=-lssl -lcrypto CFLAGS+= CFLAGS+=$(shell [ -f /usr/include/linux/zaptel.h ] && echo " -DZAPATA_MOH") +CFLAGS+=$(shell [ -f /usr/local/include/zaptel.h ] && echo " -DZAPATA_MOH") # # Work around buggy RedHat 9.0 # diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index 06798c274..d6bc6c760 100755 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -37,7 +37,11 @@ #include <sys/stat.h> #include <dirent.h> #ifdef ZAPATA_MOH +#ifdef __linux__ #include <linux/zaptel.h> +#else +#include <zaptel.h> +#endif /* __linux__ */ #endif #include <unistd.h> #include <sys/ioctl.h> |