From 6a3451efcc115b9aa321010b14ee2696a2917557 Mon Sep 17 00:00:00 2001 From: wennmach Date: Mon, 7 Oct 2002 19:01:24 +0000 Subject: Make arla compile on -current. Patch from Love . Bump nb version to 2. --- net/arla/patches/patch-ak | 36 ++++++++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 8 deletions(-) (limited to 'net/arla/patches') diff --git a/net/arla/patches/patch-ak b/net/arla/patches/patch-ak index ef517f7cb6c..85f4e22725e 100644 --- a/net/arla/patches/patch-ak +++ b/net/arla/patches/patch-ak @@ -1,11 +1,13 @@ -$NetBSD: patch-ak,v 1.3 2001/08/09 13:49:00 wennmach Exp $ +$NetBSD: patch-ak,v 1.4 2002/10/07 19:01:25 wennmach Exp $ + +Make arla work on -current (post NetBSD 1.6). Do not print a cryptic message after xfs_mod has been modloaded, say it in clear text. ---- xfs/bsd/xfs_wrap-bsd.c.orig Tue May 9 05:17:00 2000 -+++ xfs/bsd/xfs_wrap-bsd.c Mon Nov 6 16:08:55 2000 -@@ -36,6 +36,8 @@ +--- xfs/bsd/xfs_wrap-bsd.c.~1.33.~ Mon Sep 30 21:58:30 2002 ++++ xfs/bsd/xfs_wrap-bsd.c Mon Sep 30 22:22:24 2002 +@@ -31,6 +31,8 @@ * SUCH DAMAGE. */ @@ -14,13 +16,31 @@ in clear text. #include #include #include -@@ -308,8 +310,7 @@ +@@ -205,7 +207,9 @@ + #elif defined(__FreeBSD__) + MOD_DEV(xfs,LM_DT_CHAR,-1,&xfs_dev); + #else +-#if !defined(__APPLE__) ++#if __NetBSD_Version__ >= 106080000 ++MOD_DEV("xfs_mod","xfs_mod", NULL, -1, &xfs_dev, -1) ++#elif !defined(__APPLE__) + MOD_DEV("xfs_mod",LM_DT_CHAR,-1,&xfs_dev) + #endif + #endif +@@ -302,8 +306,14 @@ + } ret = lkmdispatch(lkmtp, cmd); if(cmd == LKM_E_LOAD) { ++#if __NetBSD_Version__ >= 106080000 ++ xfs_dev_major = _module.lkm_cdevmaj; ++#else xfs_dev_major = _module.lkm_offset; - printf ("xfs: cdev: %d, syscall: %d\n", -- xfs_dev_major, xfs_syscall_num); -+ printf("xfs (%s): using cdev %d, syscall %d\n", arla_version, xfs_dev_major, xfs_syscall_num); ++#endif ++ printf ("xfs (%s): " ++ "using cdev: %d, syscall: %d\n", ++ arla_version, + xfs_dev_major, xfs_syscall_num); } return ret; - } + -- cgit v1.2.3