diff options
author | wennmach <wennmach@pkgsrc.org> | 2002-10-07 19:01:24 +0000 |
---|---|---|
committer | wennmach <wennmach@pkgsrc.org> | 2002-10-07 19:01:24 +0000 |
commit | 6a3451efcc115b9aa321010b14ee2696a2917557 (patch) | |
tree | 05a343b5d2adc0cb457dd6469e091a5e22791845 /net/arla/patches | |
parent | 6686dfaba57b5443622fff07223c76b316eeef03 (diff) | |
download | pkgsrc-6a3451efcc115b9aa321010b14ee2696a2917557.tar.gz |
Make arla compile on -current. Patch from Love <lha@netbsd.org>.
Bump nb version to 2.
Diffstat (limited to 'net/arla/patches')
-rw-r--r-- | net/arla/patches/patch-ak | 36 |
1 files changed, 28 insertions, 8 deletions
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 <xfs/xfs_locl.h> #include <xfs/xfs_message.h> #include <xfs/xfs_fs.h> -@@ -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; - } + |