summaryrefslogtreecommitdiffstats
path: root/security/xinetd/files/patch-ae
blob: 8aceb7d3f2f97ec2f55c9aadc5a3dce9149d7899 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- xinetd/xgetloadavg.c.orig	Wed Aug 16 01:32:49 2000
+++ xinetd/xgetloadavg.c	Sat Nov 11 14:48:29 2000
@@ -77,6 +77,21 @@
 }
 #endif /* HAVE_KSTAT */
 #endif /* solaris */
+#ifdef __FreeBSD__
+
+#include <stdio.h>
+#include <sys/param.h>
+#include <sys/fcntl.h>
+
+double xgetloadavg ()
+{
+	double ret[3];
+
+	getloadavg (ret, sizeof (ret) / sizeof (ret[0]));
+
+	return ret[0];
+}
+#endif /* __FreeBSD__ */
 
 #ifdef __osf__
 
OpenPOWER on IntegriCloud