summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOBATA Akio <[email protected]>2015-06-27 14:47:01 +0900
committerOBATA Akio <[email protected]>2015-06-27 14:47:01 +0900
commit7be9806ada1e43504e978808b7995c24b46dd1fc (patch)
treeea9b0d566f77b1e1330689d7243b23cbc7529ef7 /src
parentaaf40aff07dd23fe0c2364df6e9c7ca5d60e09d0 (diff)
downloadmate-system-monitor-7be9806ada1e43504e978808b7995c24b46dd1fc.tar.bz2
mate-system-monitor-7be9806ada1e43504e978808b7995c24b46dd1fc.tar.xz
procproperties: Fix on NetBSD
On NetBSD, HZ tick can be retrieved same as OpenBSD.
Diffstat (limited to 'src')
-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;