Date: Sun, 2 Sep 2012 09:16:08 +0000 (UTC) From: Johan van Selst <johans@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r303540 - head/news/trn4/files Message-ID: <201209020916.q829G8Vu073268@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: johans Date: Sun Sep 2 09:16:08 2012 New Revision: 303540 URL: http://svn.freebsd.org/changeset/ports/303540 Log: - Fix compilation error when building trn without NNTP support - No PORTREVISION bump needed Submitted by: Sean Eric Fagan <sef@Kithrup.COM> Added: head/news/trn4/files/patch-nonntp (contents, props changed) Added: head/news/trn4/files/patch-nonntp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/news/trn4/files/patch-nonntp Sun Sep 2 09:16:08 2012 (r303540) @@ -0,0 +1,45 @@ +Fix compilation errors when building without NNTP support +- Sean Eric Fagan <sef@Kithrup.COM> + +diff -ubr trn-4.0-test77/bits.c /usr/ports/news/trn4/work/trn-4.0-test77/bits.c +--- bits.c 2010-09-01 23:12:26.000000000 -0700 ++++ bits.c 2012-08-18 10:58:57.000000000 -0700 +@@ -623,8 +623,10 @@ + char* xref_buf, *curxref; + char tmpbuf[128]; + ++#ifdef DF_NOXREFS + if (datasrc->flags & DF_NOXREFS) + return 0; ++#endif + + if (inbackground()) + spin(10); +@@ -771,8 +773,10 @@ + char* curxref; + char tmpbuf[128]; + ++#ifdef DF_NOXREFS + if (datasrc->flags & DF_NOXREFS) + return; ++#endif + + if (inbackground()) + spin(10); +diff -ubr trn-4.0-test77/cache.c /usr/ports/news/trn4/work/trn-4.0-test77/cache.c +--- cache.c 2001-02-14 15:53:26.000000000 -0800 ++++ cache.c 2012-08-18 10:59:35.000000000 -0700 +@@ -821,8 +821,12 @@ + { + register ART_NUM an; + +- if (olden_days || (datasrc->flags & DF_NOXREFS) || xref_to_get > lastart) ++ if (olden_days || xref_to_get > lastart) + return TRUE; ++#ifdef DF_NOXREFS ++ if (datasrc->flags & DF_NOXREFS) ++ return TRUE; ++#endif + setspin(SPIN_BACKGROUND); + for (an=article_first(xref_to_get); an <= lastart; an=article_next(an)) { + if (input_pending())
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209020916.q829G8Vu073268>