[gnome-system-monitor/gnome-3-4] As with OpenBSD, there is no HZ defined in FreeBSD



commit ce00a8ef4f9727cd239deaf75c90aea92f55b5d3
Author: Chris KÃhl <blixtra gmail com>
Date:   Mon Apr 16 11:14:36 2012 +0200

    As with OpenBSD, there is no HZ defined in FreeBSD
    
    https://bugzilla.gnome.org/show_bug.cgi?id=674064

 src/procproperties.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/procproperties.cpp b/src/procproperties.cpp
index 6821893..d97ce92 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(__OpenBSD__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
 #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(__OpenBSD__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
     struct clockinfo cinf;
     size_t size = sizeof (cinf);
     int HZ;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]