aboutsummaryrefslogtreecommitdiff
path: root/deskutils/mdh/files/patch-src::mdh_panel_uptime.c
diff options
context:
space:
mode:
Diffstat (limited to 'deskutils/mdh/files/patch-src::mdh_panel_uptime.c')
-rw-r--r--deskutils/mdh/files/patch-src::mdh_panel_uptime.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/deskutils/mdh/files/patch-src::mdh_panel_uptime.c b/deskutils/mdh/files/patch-src::mdh_panel_uptime.c
new file mode 100644
index 000000000000..414b7f5e6f77
--- /dev/null
+++ b/deskutils/mdh/files/patch-src::mdh_panel_uptime.c
@@ -0,0 +1,19 @@
+--- src/mdh_panel_uptime.c.orig Wed Nov 12 05:38:41 2003
++++ src/mdh_panel_uptime.c Wed Nov 12 05:45:55 2003
+@@ -40,6 +40,7 @@
+
+ #ifdef BSD4_4
+ #include <sys/sysctl.h>
++#include <sys/time.h>
+ #endif
+
+ #ifdef __sun__
+@@ -227,7 +228,7 @@
+
+ #ifdef BSD4_4
+ if(sysctl(mib, 2, &btime, &size, NULL, 0) != -1 && btime.tv_sec != 0)
+- sec = (time(NULL) - boottime.tv_sec) + 30;
++ sec = (time(NULL) - btime.tv_sec) + 30;
+ #endif
+
+ *seconds = sec;