$NetBSD: patch-aa,v 1.3 2008/12/07 16:23:45 kent Exp $

--- dll/ui.so/X11.cc.orig	2008-12-08 01:09:48.000000000 +0900
+++ dll/ui.so/X11.cc
@@ -41,6 +41,9 @@
 #include <sys/param.h>
 #include <sys/shm.h>
 #include <sys/sysctl.h>
+#ifndef KERN_SYSVSHM
+#define KERN_SYSVSHM KERN_OLDSYSVSHM
+#endif
 
 #include "X11.h"
 #include "WindowObject.h"
