Subject: LKM module for aperture (was no subjects))
To: None <dive-nb@endersgame.net>
From: MAEKAWA Masahide <bishop@rr.iij4u.or.jp>
List: current-users
Date: 09/08/2002 17:03:25
Sean Davis <dive-nb@endersgame.net> wrote:
>Since the devsw stuff was merged, X no longer works for me. I am pretty sure
>the problem is in the aperture module, because trying to build it now gives
>me this:
>(in pkgsrc/sysutils/aperture)

How about this?

--- xf86_mod.c.orig	Sun Sep  8 16:46:28 2002
+++ xf86_mod.c	Sun Sep  8 16:58:16 2002
@@ -31,7 +31,11 @@
 	0,
 	seltrue, xf86mmap, 0};
 
+#if __NetBSD_Version__ >= 106080000
+MOD_DEV("xf86", "xf86", NULL, -1, &newdev, -1)
+#else
 MOD_DEV("xf86", LM_DT_CHAR, -1, &newdev)
+#endif
 
 char *xf86_major_version = "2";
 char *xf86_minor_version = "0";