diff options
author | johans <johans@FreeBSD.org> | 2012-09-02 17:16:08 +0800 |
---|---|---|
committer | johans <johans@FreeBSD.org> | 2012-09-02 17:16:08 +0800 |
commit | a7d7931980220b08cb822a8c867149a8a8eb046a (patch) | |
tree | dd0e25eed181caadd1443acec7e2bcaec982f37c /news/trn4 | |
parent | 9b39d409e4bbb600784319452f01a3e706ed39b0 (diff) | |
download | freebsd-ports-gnome-a7d7931980220b08cb822a8c867149a8a8eb046a.tar.gz freebsd-ports-gnome-a7d7931980220b08cb822a8c867149a8a8eb046a.tar.zst freebsd-ports-gnome-a7d7931980220b08cb822a8c867149a8a8eb046a.zip |
- Fix compilation error when building trn without NNTP support
- No PORTREVISION bump needed
Submitted by: Sean Eric Fagan <sef@Kithrup.COM>
Diffstat (limited to 'news/trn4')
-rw-r--r-- | news/trn4/files/patch-nonntp | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/news/trn4/files/patch-nonntp b/news/trn4/files/patch-nonntp new file mode 100644 index 000000000000..f470f852a45d --- /dev/null +++ b/news/trn4/files/patch-nonntp @@ -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()) |