aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rwxr-xr-xres/Makefile1
-rwxr-xr-xres/res_musiconhold.c4
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>