aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormalcolmd <malcolmd@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-09 12:18:59 +0000
committermalcolmd <malcolmd@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-09 12:18:59 +0000
commit5af73195c14fb41209b1a7b5c4f6689ee5158d33 (patch)
tree8a0c1269efaa3ff0ef46717c39afe92fc9602899
parent7b1859927ca890a305e8cc6bf69e846ab03dcc66 (diff)
Bug #4652 - Take two
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6065 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xMakefile2
-rwxr-xr-xchannel.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 76d601942..0ea71fc4b 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 692e814a7..5fb7db61b 100755
--- a/channel.c
+++ b/channel.c
@@ -33,7 +33,7 @@
#endif
#ifdef __FreeBSD__
#include <strfunc.h>
-#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