blob: b08e21ac4326e3fc390447129c576e187a8c9b0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-src_applets_memory.c,v 1.2 2014/10/24 18:21:06 khorben Exp $
--- src/applets/memory.c.orig 2014-06-27 11:22:53.000000000 +0000
+++ src/applets/memory.c
@@ -21,12 +21,13 @@
#include <errno.h>
#if defined(__linux__)
# include <sys/sysinfo.h>
-#elif defined(__FreeBSD__) || defined(__NetBSD__)
+#elif defined(__FreeBSD__)
+# include <sys/sysctl.h>
+# include <sys/vmmeter.h>
+# include <vm/vm_param.h>
+#elif defined(__NetBSD__)
# include <sys/sysctl.h>
# include <sys/vmmeter.h>
-# if defined(__FreeBSD__)
-# include <vm/vm_param.h>
-# endif
#endif
#include <libintl.h>
#include "Panel.h"
|