diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2002-11-04 05:00:14 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2002-11-04 05:00:14 +0000 |
commit | 3ff37e385bb15e608586b24278ba3dde9ea57151 (patch) | |
tree | 0b09981cfb671da75e612993d4ac3a3ef4a2551b /news/nntp/files/patch-server-misc.c | |
parent | - Fix perl/reinplace problems (diff) |
- reorder patches
- use DIRENT
- honor CFLAGS
- fix missing includes
Notes
Notes:
svn path=/head/; revision=69435
Diffstat (limited to 'news/nntp/files/patch-server-misc.c')
-rw-r--r-- | news/nntp/files/patch-server-misc.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/news/nntp/files/patch-server-misc.c b/news/nntp/files/patch-server-misc.c new file mode 100644 index 000000000000..68210ecbd9e5 --- /dev/null +++ b/news/nntp/files/patch-server-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 */ |