The following patch fixes the compilation of x11/kde/base3 for me.

Index: ports/x11/kde/base3/Makefile
===================================================================
RCS file: /pub2/cvsroot/OpenBSD/ports/x11/kde/base3/Makefile,v
retrieving revision 1.129
diff -u -p -u -p -r1.129 Makefile
--- ports/x11/kde/base3/Makefile        29 Apr 2014 22:09:43 -0000      1.129
+++ ports/x11/kde/base3/Makefile        7 Jul 2014 14:55:18 -0000
@@ -13,10 +13,10 @@ PKGNAME-en_US =             kde3-locale-en_US-${VER
 PKGNAME-locale =       kde3-locale-${VERSION}
 PKG_ARCH-en_US =       *
 PKG_ARCH-locale =      *
-REVISION-main =                36
-REVISION-samba =       13
-REVISION-en_US =       0
-REVISION-locale =      0
+REVISION-main =                37
+REVISION-samba =       14
+REVISION-en_US =       1
+REVISION-locale =      1
 
 MODKDE_VERSION =       3.5.8
 
Index: ports/x11/kde/base3/patches/patch-ksysguard_ksysguardd_OpenBSD_memory_c
===================================================================
RCS file: 
/pub2/cvsroot/OpenBSD/ports/x11/kde/base3/patches/patch-ksysguard_ksysguardd_OpenBSD_memory_c,v
retrieving revision 1.1
diff -u -p -u -p -r1.1 patch-ksysguard_ksysguardd_OpenBSD_memory_c
--- ports/x11/kde/base3/patches/patch-ksysguard_ksysguardd_OpenBSD_memory_c     
18 Feb 2006 13:29:36 -0000      1.1
+++ ports/x11/kde/base3/patches/patch-ksysguard_ksysguardd_OpenBSD_memory_c     
7 Jul 2014 14:30:33 -0000
@@ -1,7 +1,15 @@
 $OpenBSD: patch-ksysguard_ksysguardd_OpenBSD_memory_c,v 1.1 2006/02/18 
13:29:36 espie Exp $
---- ksysguard/ksysguardd/OpenBSD/memory.c.orig Sat Feb 18 14:14:15 2006
-+++ ksysguard/ksysguardd/OpenBSD/memory.c      Sat Feb 18 14:22:08 2006
-@@ -37,6 +37,8 @@
+--- ksysguard/ksysguardd/OpenBSD/memory.c.orig Mon Oct 10 11:04:31 2005
++++ ksysguard/ksysguardd/OpenBSD/memory.c      Mon Jul  7 10:30:04 2014
+@@ -24,6 +24,7 @@
+ #include <sys/sysctl.h>
+ #include <sys/dkstat.h>
+ #include <sys/swap.h>
++#include <sys/vmmeter.h>
+ 
+ #include <limits.h>
+ #include <stdio.h>
+@@ -37,6 +38,8 @@
  
  static size_t Total = 0;
  static size_t MFree = 0;
@@ -10,7 +18,7 @@ $OpenBSD: patch-ksysguard_ksysguardd_Ope
  static size_t Active = 0;
  static size_t InActive = 0;
  static size_t STotal = 0;
-@@ -71,6 +73,8 @@ initMemory(struct SensorModul* sm)
+@@ -71,6 +74,8 @@ initMemory(struct SensorModul* sm)
    registerMonitor("mem/physical/free", "integer", printMFree, printMFreeInfo, 
sm);
        registerMonitor("mem/physical/active", "integer", printActive, 
printActiveInfo, sm);
        registerMonitor("mem/physical/inactive", "integer", printInActive, 
printInActiveInfo, sm);
@@ -19,7 +27,7 @@ $OpenBSD: patch-ksysguard_ksysguardd_Ope
        registerMonitor("mem/swap/free", "integer", printSwapFree, 
printSwapFreeInfo, sm);
        registerMonitor("mem/swap/used", "integer", printSwapUsed, 
printSwapUsedInfo, sm);
  }
-@@ -99,6 +103,9 @@ updateMemory(void)
+@@ -99,6 +104,9 @@ updateMemory(void)
        InActive /= 1024;
        InActive -= Active;
  
@@ -29,7 +37,7 @@ $OpenBSD: patch-ksysguard_ksysguardd_Ope
        swapmode(&SUsed, &STotal);
        SFree = STotal - SUsed;
        return 0;
-@@ -114,6 +121,30 @@ void
+@@ -114,6 +122,30 @@ void
  printMFreeInfo(const char* cmd)
  {
        fprintf(CurrentClient, "Free Memory\t0\t%d\tKB\n", Total);

Reply via email to