From 5d60a21dbfa19deb2745c456981778bab8b3f7e8 Mon Sep 17 00:00:00 2001 From: Pete Fritchman Date: Sat, 30 Mar 2002 00:13:03 +0000 Subject: [PATCH] Fix build, don't clobber the system strcasestr() function. PR: 36455 --- net-p2p/fidelio/Makefile | 3 +++ net/fidelio/Makefile | 3 +++ 2 files changed, 6 insertions(+) diff --git a/net-p2p/fidelio/Makefile b/net-p2p/fidelio/Makefile index 3943c298ddce..6ac49f627e2d 100644 --- a/net-p2p/fidelio/Makefile +++ b/net-p2p/fidelio/Makefile @@ -28,6 +28,7 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/libxml2 \ LDFLAGS="-L${LOCALBASE}/lib `${GLIB_CONFIG} --libs gthread`" \ XML_CONFIG="${XML_CONFIG}" CONFIGURE_ARGS= --without-included-gettext +CFLAGS+= -DHAVE_STRCASESTR pre-patch: @${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \ @@ -37,5 +38,7 @@ pre-patch: s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g' @${PERL} -pi -e 's|-lxml|-lxml2|g' \ ${WRKSRC}/configure + @${PERL} -pi -e 's|extern int strcasestr|//extern int strcasestr|' \ + ${WRKSRC}/src/trackers.c .include diff --git a/net/fidelio/Makefile b/net/fidelio/Makefile index 3943c298ddce..6ac49f627e2d 100644 --- a/net/fidelio/Makefile +++ b/net/fidelio/Makefile @@ -28,6 +28,7 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/libxml2 \ LDFLAGS="-L${LOCALBASE}/lib `${GLIB_CONFIG} --libs gthread`" \ XML_CONFIG="${XML_CONFIG}" CONFIGURE_ARGS= --without-included-gettext +CFLAGS+= -DHAVE_STRCASESTR pre-patch: @${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \ @@ -37,5 +38,7 @@ pre-patch: s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g' @${PERL} -pi -e 's|-lxml|-lxml2|g' \ ${WRKSRC}/configure + @${PERL} -pi -e 's|extern int strcasestr|//extern int strcasestr|' \ + ${WRKSRC}/src/trackers.c .include