summaryrefslogtreecommitdiff
path: root/x11/kde-workspace4/patches/patch-ksysguard_ksysguard_FreeBSD_uptime.c
diff options
context:
space:
mode:
authormarino <marino@pkgsrc.org>2012-03-31 06:39:20 +0000
committermarino <marino@pkgsrc.org>2012-03-31 06:39:20 +0000
commitebff392eb0c2d9d21f7d12a707b4bab03e69ffdc (patch)
tree13b83765aa7d4c23e7889adce0c2f89c17e6283e /x11/kde-workspace4/patches/patch-ksysguard_ksysguard_FreeBSD_uptime.c
parentedf94c0acac9e04c5d0496fc8964cc20bf42b048 (diff)
downloadpkgsrc-ebff392eb0c2d9d21f7d12a707b4bab03e69ffdc.tar.gz
x11/kde-workspace4: Patch for DragonFly
DragonFly for kde-workspace4 is built using FreeBSD-specific files. In the future, DragonFly probably needs its OS-specific directory. These patches will fix all but one problem on DragonFly. They use macros so no revbump is required. The remaining is with cmake using the wrong include path for the QT4 tools mkspecs file qplatformdefs.h. How to best resolve that is still being determined.
Diffstat (limited to 'x11/kde-workspace4/patches/patch-ksysguard_ksysguard_FreeBSD_uptime.c')
-rw-r--r--x11/kde-workspace4/patches/patch-ksysguard_ksysguard_FreeBSD_uptime.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/x11/kde-workspace4/patches/patch-ksysguard_ksysguard_FreeBSD_uptime.c b/x11/kde-workspace4/patches/patch-ksysguard_ksysguard_FreeBSD_uptime.c
new file mode 100644
index 00000000000..dcd0e9483c3
--- /dev/null
+++ b/x11/kde-workspace4/patches/patch-ksysguard_ksysguard_FreeBSD_uptime.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-ksysguard_ksysguard_FreeBSD_uptime.c,v 1.1 2012/03/31 06:39:20 marino Exp $
+
+--- ksysguard/ksysguardd/FreeBSD/uptime.c.orig 2012-03-30 22:35:19.995531000 +0000
++++ ksysguard/ksysguardd/FreeBSD/uptime.c
+@@ -38,8 +38,10 @@ void printUptime( const char* cmd ) {
+ struct timespec tp;
+ float uptime = 0.;
+
++#if defined(CLOCK_UPTIME)
+ if (clock_gettime(CLOCK_UPTIME, &tp) != -1)
+ uptime = tp.tv_nsec / 1000000000.0 + tp.tv_sec;
++#endif
+ fprintf( CurrentClient, "%f\n", uptime);
+ }
+