diff options
author | tnn <tnn> | 2016-03-12 22:17:51 +0000 |
---|---|---|
committer | tnn <tnn> | 2016-03-12 22:17:51 +0000 |
commit | 80f12814de2a57c674c3fbc0a450182de685922d (patch) | |
tree | fabe69e565b5d000edab060cad6e85f35cccb3a2 /net | |
parent | 333bf0ebb90d57b610e527458cb2ec760ff14e7c (diff) | |
download | pkgsrc-80f12814de2a57c674c3fbc0a450182de685922d.tar.gz |
adapt struct devops to current Solaris DDI
Diffstat (limited to 'net')
-rw-r--r-- | net/solaris-tap/distinfo | 3 | ||||
-rw-r--r-- | net/solaris-tap/patches/patch-tun.c | 32 |
2 files changed, 34 insertions, 1 deletions
diff --git a/net/solaris-tap/distinfo b/net/solaris-tap/distinfo index 57c0da4c440..04f51793fb3 100644 --- a/net/solaris-tap/distinfo +++ b/net/solaris-tap/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.5 2015/11/04 00:35:38 agc Exp $ +$NetBSD: distinfo,v 1.6 2016/03/12 22:17:51 tnn Exp $ SHA1 (solaris-tap-1.1.0/tuntap.tar.gz) = aa3f0cfab3a584fa916bb7651fb08198395058e7 RMD160 (solaris-tap-1.1.0/tuntap.tar.gz) = 170c0920426cc399b903426734829edd110dfb3b SHA512 (solaris-tap-1.1.0/tuntap.tar.gz) = 8d793f90d2ae696b3aba13306682262babdb76e8268f24a95348dbdccdd210732b6d4fe8170be2021698c77ef045276d6563890353aa73b592270a679b2d21f0 Size (solaris-tap-1.1.0/tuntap.tar.gz) = 41228 bytes +SHA1 (patch-tun.c) = e7042561d5c29204cf1405706e56a51aca9abe11 diff --git a/net/solaris-tap/patches/patch-tun.c b/net/solaris-tap/patches/patch-tun.c new file mode 100644 index 00000000000..f8d177d9b1c --- /dev/null +++ b/net/solaris-tap/patches/patch-tun.c @@ -0,0 +1,32 @@ +$NetBSD: patch-tun.c,v 1.1 2016/03/12 22:17:51 tnn Exp $ + +Adapt to current Solaris DDI. + +--- tun.c.orig 2011-07-11 02:13:31.000000000 +0000 ++++ tun.c +@@ -143,7 +143,12 @@ static struct dev_ops tun_ops = { + nodev, /* devo_reset */ + &tun_cb_ops, /* devo_cb_ops */ + NULL, /* devo_bus_ops */ ++#ifdef DDI_PM_SUSPEND + ddi_power /* devo_power */ ++#else ++ NULL, /* devo_power, deprecated? */ ++ ddi_quiesce_not_needed /* devo_quiesce */ ++#endif + }; + + static struct modldrv modldrv = { +@@ -229,7 +234,11 @@ static int tundetach(dev_info_t *dev, dd + ddi_prop_remove_all(dev); + ddi_remove_minor_node(dev, NULL); + return (DDI_SUCCESS); +- } else if( (cmd == DDI_SUSPEND) || (cmd == DDI_PM_SUSPEND) ){ ++ } else if( (cmd == DDI_SUSPEND) ++#ifdef DDI_PM_SUSPEND ++ || (cmd == DDI_PM_SUSPEND) ++#endif ++){ + return (DDI_SUCCESS); + } else + return (DDI_FAILURE); |