From: Malcolm Davenport Date: Sat, 9 Jul 2005 12:18:59 +0000 (+0000) Subject: Bug #4652 - Take two X-Git-Tag: 1.2.0-beta1~335 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fe7c0b0cce29965c4f68222c567aea033c7e1bdf;p=thirdparty%2Fasterisk.git Bug #4652 - Take two git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6065 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/Makefile b/Makefile index 76d601942b..0ea71fc4b8 100755 --- a/Makefile +++ b/Makefile @@ -183,7 +183,7 @@ CFLAGS+=$(shell if [ -f $(CROSS_COMPILE_TARGET)/usr/include/osp/osp.h ]; then ec ifeq (${OSARCH},FreeBSD) OSVERSION=$(shell make -V OSVERSION -f $(CROSS_COMPILE_TARGET)/usr/share/mk/bsd.port.subdir.mk) CFLAGS+=$(shell if test ${OSVERSION} -lt 500016 ; then echo "-D_THREAD_SAFE"; fi) -LIBS+=$(shell if test ${OSVERSION} -lt 502102 ; then echo "-lc_r"; else echo "-pthread"; fi) +LIBS+=$(shell if test ${OSVERSION} -lt 502102 ; then echo "-lc_r"; else echo "-pthread"; fi) -L$(CROSS_COMPILE_TARGET)/usr/local/lib INCLUDE+=-I$(CROSS_COMPILE_TARGET)/usr/local/include CFLAGS+=$(shell if [ -d $(CROSS_COMPILE_TARGET)/usr/local/include/spandsp ]; then echo "-I$(CROSS_COMPILE_TARGET)/usr/local/include/spandsp"; fi) MPG123TARG=freebsd diff --git a/channel.c b/channel.c index 692e814a72..5fb7db61b1 100755 --- a/channel.c +++ b/channel.c @@ -33,7 +33,7 @@ #endif #ifdef __FreeBSD__ #include -#ifndef __STRFUNC_H__ +#if (!defined(__STRFUNC_H__) || (!defined(STRFUNC_H)) #error "Please install the strfunc library located in the ports collection at /usr/ports/devel/libstrfunc" #endif #endif