aboutsummaryrefslogtreecommitdiff
path: root/news
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2006-10-07 19:17:13 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2006-10-07 19:17:13 +0000
commit2cbc314813cbbd883d8c6d62368f72ec7882f8cd (patch)
treeaf383385fd8d7b8f0799a021e0c2055b487758c5 /news
parent9e9fd1d8139627a0c8ebc220e019ca8e94cdedea (diff)
downloadports-2cbc314813cbbd883d8c6d62368f72ec7882f8cd.tar.gz
ports-2cbc314813cbbd883d8c6d62368f72ec7882f8cd.zip
- fix build with gcc41
Notes
Notes: svn path=/head/; revision=174841
Diffstat (limited to 'news')
-rw-r--r--news/fidogate/Makefile3
-rw-r--r--news/fidogate/files/patch-rfc2ftn.c11
2 files changed, 14 insertions, 0 deletions
diff --git a/news/fidogate/Makefile b/news/fidogate/Makefile
index 83e16ba6dbf2..9ee1a6cbf372 100644
--- a/news/fidogate/Makefile
+++ b/news/fidogate/Makefile
@@ -28,6 +28,8 @@ DOCLIST= fidogate.texi fidogate.txt gatebau94.txt kludge-rfc.doc \
template.html fido howto misc rfc gatebau/msgid.sgml \
gatebau/msgid.tex gatebau/msgid.txt
+MAKE_ENV+= CC=${CC}
+
.include <bsd.port.pre.mk>
.if ${OSVERSION} > 500000
@@ -39,6 +41,7 @@ pre-configure:
${RM} -f ${WRKSRC}/doc/fidogate.info-?
${RM} -f ${WRKSRC}/doc/fidogate.txt
@${PERL5} -pi -e "s=.{PREFIX}=${PREFIX}=g" ${WRKSRC}/config.make
+ @${PERL5} -pi -e "s=^CC=#CC=" ${WRKSRC}/config.make
.if defined(FIDOGATE_RUNAS)
@${PERL5} -pi -e "s/OWNER.*= news/OWNER = ${FIDOGATE_RUNAS}/" \
${WRKSRC}/config.make
diff --git a/news/fidogate/files/patch-rfc2ftn.c b/news/fidogate/files/patch-rfc2ftn.c
new file mode 100644
index 000000000000..6115860f5135
--- /dev/null
+++ b/news/fidogate/files/patch-rfc2ftn.c
@@ -0,0 +1,11 @@
+--- src/gate/rfc2ftn.c.orig Sun Aug 22 22:19:12 2004
++++ src/gate/rfc2ftn.c Sat Oct 7 21:06:14 2006
+@@ -99,7 +99,7 @@
+ static char *o_flag = NULL; /* -o --out-packet-file */
+ static char *w_flag = NULL; /* -w --write-outbound */
+ static int W_flag = FALSE; /* -W --write-crash */
+-static int i_flag = FALSE; /* -i --ignore-hosts */
++int i_flag = FALSE; /* -i --ignore-hosts */
+
+ static int maxmsg = 0; /* Process maxmsg messages */
+