aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xMakefile2
-rwxr-xr-xchannel.c6
2 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5fe54e866..76d601942 100755
--- a/Makefile
+++ b/Makefile
@@ -235,7 +235,7 @@ LIBS+=-lresolv
CFLAGS+=-D__Darwin__
endif
ifeq (${OSARCH},FreeBSD)
-LIBS+=-lcrypto
+LIBS+=-lcrypto -lstrfunc
endif
ifeq (${OSARCH},NetBSD)
LIBS+=-lpthread -lcrypto -lm -L$(CROSS_COMPILE_TARGET)/usr/local/lib -L$(CROSS_COMPILE_TARGET)/usr/pkg/lib -lncurses
diff --git a/channel.c b/channel.c
index 6ec2ff044..692e814a7 100755
--- a/channel.c
+++ b/channel.c
@@ -31,6 +31,12 @@
#error "You need newer zaptel! Please cvs update zaptel"
#endif
#endif
+#ifdef __FreeBSD__
+#include <strfunc.h>
+#ifndef __STRFUNC_H__
+#error "Please install the strfunc library located in the ports collection at /usr/ports/devel/libstrfunc"
+#endif
+#endif
#include "asterisk.h"