diff options
Diffstat (limited to 'deskutils/mdh/files')
-rw-r--r-- | deskutils/mdh/files/patch-src::mdh_panel_temp.c | 13 | ||||
-rw-r--r-- | deskutils/mdh/files/patch-src::mdh_panel_uptime.c | 19 |
2 files changed, 32 insertions, 0 deletions
diff --git a/deskutils/mdh/files/patch-src::mdh_panel_temp.c b/deskutils/mdh/files/patch-src::mdh_panel_temp.c new file mode 100644 index 000000000000..6bdc3982c6ea --- /dev/null +++ b/deskutils/mdh/files/patch-src::mdh_panel_temp.c @@ -0,0 +1,13 @@ +--- src/mdh_panel_temp.c.orig Wed Nov 12 05:36:52 2003 ++++ src/mdh_panel_temp.c Wed Nov 12 05:37:28 2003 +@@ -33,9 +33,9 @@ + #include <string.h> + #include <stdarg.h> + #include <errno.h> ++#include <sys/types.h> + #include <regex.h> + #include <signal.h> +-#include <sys/types.h> + #include <sys/stat.h> + #include <time.h> + #include <wait.h> 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; |