blob: 8cc4251e0e5ef7d4d1438ae2144c831326fed4fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-contrib_mod__load_mod__load.c,v 1.2 2019/12/19 12:52:28 nros Exp $
* solaris and derivates has loadavg in sys/loadavg.h
--- contrib/mod_load/mod_load.c.orig 2017-04-10 02:31:02.000000000 +0000
+++ contrib/mod_load/mod_load.c
@@ -49,6 +49,10 @@
# include <sys/param.h>
#endif
+#if defined (HAVE_SYS_LOADAVG_H)
+# include <sys/loadavg.h>
+#endif
+
#ifndef HAVE_GETLOADAVG
# if !defined(LDAV_CVT) && defined(LOAD_AVE_CVT)
# define LDAV_CVT(n) (LOAD_AVE_CVT (n) / 100.0)
|