diff --git a/Makefile b/Makefile index 5fe54e8660..76d601942b 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 6ec2ff044f..692e814a72 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 +#ifndef __STRFUNC_H__ +#error "Please install the strfunc library located in the ports collection at /usr/ports/devel/libstrfunc" +#endif +#endif #include "asterisk.h"