From eb657ed87904321793261a7da261e407bea7358d Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 14 Sep 2002 08:14:22 +0000 Subject: Make this package work under NetBSD 1.6H. Beware: I still see panics when unloading the module, use on your own risk. Bump package revision to reflect change. --- sysutils/aperture/patches/patch-ab | 10 +++++----- sysutils/aperture/patches/patch-ac | 15 +++++++++++++++ 2 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 sysutils/aperture/patches/patch-ac (limited to 'sysutils/aperture/patches') diff --git a/sysutils/aperture/patches/patch-ab b/sysutils/aperture/patches/patch-ab index 4c090cbb4d2..5c05857b541 100644 --- a/sysutils/aperture/patches/patch-ab +++ b/sysutils/aperture/patches/patch-ab @@ -1,13 +1,13 @@ -$NetBSD: patch-ab,v 1.3 2002/09/13 07:16:45 tron Exp $ +$NetBSD: patch-ab,v 1.4 2002/09/14 08:14:22 tron Exp $ ---- module/xf86_mod.c.orig Fri Sep 13 08:13:28 2002 -+++ module/xf86_mod.c Fri Sep 13 08:16:34 2002 +--- module/xf86_mod.c.orig Mon Sep 9 12:29:28 2002 ++++ module/xf86_mod.c Mon Sep 9 12:30:05 2002 @@ -31,7 +31,11 @@ 0, seltrue, xf86mmap, 0}; -+#if defined(__NetBSD__) && (__NetBSD_Version__ >= 106080000) -+MOD_DEV("xf86", "xf86", NULL, -1, &newdev, -1) ++#if __NetBSD_Version__ >= 106080000 ++MOD_DEV("xf86", "xf86ap", NULL, -1, &newdev, -1) +#else MOD_DEV("xf86", LM_DT_CHAR, -1, &newdev) +#endif diff --git a/sysutils/aperture/patches/patch-ac b/sysutils/aperture/patches/patch-ac new file mode 100644 index 00000000000..5216559ad54 --- /dev/null +++ b/sysutils/aperture/patches/patch-ac @@ -0,0 +1,15 @@ +$NetBSD: patch-ac,v 1.3 2002/09/14 08:14:22 tron Exp $ + +--- module/xf86_mod_install.orig Fri Sep 13 18:29:17 2002 ++++ module/xf86_mod_install Fri Sep 13 18:34:52 2002 +@@ -4,8 +4,8 @@ + # + # Copyright (C) 1994,1999 The XFree86 Project Inc. + # +-if [ $# -ne 3 ]; then +- echo "$0: should be called by modload(8) with 3 arguments" ++if [ $# -lt 3 ]; then ++ echo "$0: should be called by modload(8) with at least 3 arguments" + exit 1 + fi + -- cgit v1.2.3