aboutsummaryrefslogtreecommitdiffstats
path: root/news/nntp
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2002-01-25 14:41:19 +0800
committerdinoex <dinoex@FreeBSD.org>2002-01-25 14:41:19 +0800
commitce756b4a6c33d0194aa22ed5f53dee55e1d5a449 (patch)
tree325f3c78799a55b1e40a606cad5ecc4f0665da3b /news/nntp
parent4cd42a284488fb3ab2e60bc0a4b19702d42211f9 (diff)
downloadfreebsd-ports-gnome-ce756b4a6c33d0194aa22ed5f53dee55e1d5a449.tar.gz
freebsd-ports-gnome-ce756b4a6c33d0194aa22ed5f53dee55e1d5a449.tar.zst
freebsd-ports-gnome-ce756b4a6c33d0194aa22ed5f53dee55e1d5a449.zip
- Add a patch to use getloadavg(3) instead of nlist and kernel sysmbols
- bumped PORTREVISION
Diffstat (limited to 'news/nntp')
-rw-r--r--news/nntp/Makefile1
-rw-r--r--news/nntp/files/patch-misc.c36
2 files changed, 37 insertions, 0 deletions
diff --git a/news/nntp/Makefile b/news/nntp/Makefile
index ffcb9644b90d..c201eb79e3e9 100644
--- a/news/nntp/Makefile
+++ b/news/nntp/Makefile
@@ -7,6 +7,7 @@
PORTNAME= nntp
PORTVERSION= 1.5.12.2
+PORTREVISION= 1
CATEGORIES= news
MASTER_SITES= ftp://ftp.academ.com/pub/nntp/server/
DISTNAME= ${PORTNAME}.${PORTVERSION}
diff --git a/news/nntp/files/patch-misc.c b/news/nntp/files/patch-misc.c
new file mode 100644
index 000000000000..68210ecbd9e5
--- /dev/null
+++ b/news/nntp/files/patch-misc.c
@@ -0,0 +1,36 @@
+--- server/misc.c.orig Tue Jan 9 08:28:04 1996
++++ server/misc.c Fri Jan 25 06:16:44 2002
+@@ -965,6 +965,27 @@
+ ** none.
+ */
+
++
++#if defined(BSD_44)
++#include <stdlib.h>
++
++int
++getla( void )
++{
++ double avenrun[3];
++ int rc;
++
++ rc = getloadavg( avenrun, 1 );
++ if ( rc == -1 )
++ return 1;
++# ifdef FSCALE
++ return ((int) (avenrun[0] + FSCALE/2) >> FSHIFT);
++# else
++ return ((int) (avenrun[0] + 0.5));
++# endif
++}
++
++#else
+ #if defined(USG) && !defined(SVR4)
+ int
+ getla()
+@@ -1058,4 +1079,5 @@
+ # endif
+ }
+ #endif
++#endif /* BSD_44 */
+ #endif /* LOAD */