Index: Makefile =================================================================== RCS file: /usr/cvsroot/asterisk/Makefile,v retrieving revision 1.172 diff -u -r1.172 Makefile --- Makefile 5 Jul 2005 19:04:49 -0000 1.172 +++ Makefile 8 Jul 2005 18:10:01 -0000 @@ -235,7 +235,7 @@ 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 Index: channel.c =================================================================== RCS file: /usr/cvsroot/asterisk/channel.c,v retrieving revision 1.211 diff -u -r1.211 channel.c --- channel.c 5 Jul 2005 22:21:54 -0000 1.211 +++ channel.c 8 Jul 2005 18:10:01 -0000 @@ -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"