pkgsrc/x11/wmavgload/patches/patch-ab
2006-01-04 15:16:11 +00:00

22 lines
741 B
Text

$NetBSD: patch-ab,v 1.4 2006/01/04 15:16:11 joerg Exp $
--- get_load.c.orig 1998-09-28 21:54:34.000000000 +0000
+++ get_load.c
@@ -6,7 +6,7 @@
# include <sys/param.h>
-# if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__)
+# if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__DragonFly__)
# include <rpcsvc/rstat.h>
# endif
@@ -104,7 +104,7 @@ void GetLoad(float *small,float *medium,
}
#endif
-#if defined(__FreeBSD) || defined(__NetBSD__) || defined(__OpenBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
void GetLoad(float *small, float *medium, float *large)
{
static double loadavg[3];