summaryrefslogtreecommitdiff
path: root/src/procproperties.cpp
diff options
context:
space:
mode:
authorMartin Wimpress <[email protected]>2015-06-27 08:14:26 +0100
committerMartin Wimpress <[email protected]>2015-06-27 08:14:26 +0100
commit7f3e4d9be61b2d957c225f16f8aa9a56271e0fcf (patch)
treeea9b0d566f77b1e1330689d7243b23cbc7529ef7 /src/procproperties.cpp
parentaaf40aff07dd23fe0c2364df6e9c7ca5d60e09d0 (diff)
parent7be9806ada1e43504e978808b7995c24b46dd1fc (diff)
downloadmate-system-monitor-7f3e4d9be61b2d957c225f16f8aa9a56271e0fcf.tar.bz2
mate-system-monitor-7f3e4d9be61b2d957c225f16f8aa9a56271e0fcf.tar.xz
Merge pull request #50 from obache/neatsrc
procproperties: Fix on NetBSD
Diffstat (limited to 'src/procproperties.cpp')
-rw-r--r--src/procproperties.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/procproperties.cpp b/src/procproperties.cpp
index b8af0d1..26861ec 100644
--- a/src/procproperties.cpp
+++ b/src/procproperties.cpp
@@ -26,7 +26,7 @@
#include <glibtop/procstate.h>
#if defined (__linux__)
#include <asm/param.h>
-#elif defined (__OpenBSD__)
+#elif defined (__NetBSD__) || defined (__OpenBSD__)
#include <sys/param.h>
#include <sys/sysctl.h>
#endif
@@ -114,7 +114,7 @@ fill_proc_properties (GtkWidget *tree, ProcInfo *info)
get_process_memory_info(info);
-#if defined (__OpenBSD__)
+#if defined (__NetBSD__) || defined (__OpenBSD__)
struct clockinfo cinf;
size_t size = sizeof (cinf);
int HZ;