aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--misc/zaptel/Makefile2
-rw-r--r--misc/zaptel/files/patch-zaptel::zaptel.c21
2 files changed, 19 insertions, 4 deletions
diff --git a/misc/zaptel/Makefile b/misc/zaptel/Makefile
index 4fceaafd780f..f7740814896a 100644
--- a/misc/zaptel/Makefile
+++ b/misc/zaptel/Makefile
@@ -7,7 +7,7 @@
PORTNAME= zaptel
PORTVERSION= 1.4.6
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= misc kld
MASTER_SITES= http://www.pbxpress.com/~gonzo/
DISTNAME= ${PORTNAME}-bsd-${PORTVERSION}
diff --git a/misc/zaptel/files/patch-zaptel::zaptel.c b/misc/zaptel/files/patch-zaptel::zaptel.c
index 6942f8fbdbe6..c8d4863017db 100644
--- a/misc/zaptel/files/patch-zaptel::zaptel.c
+++ b/misc/zaptel/files/patch-zaptel::zaptel.c
@@ -1,6 +1,9 @@
---- zaptel/zaptel.c.orig Sun Jun 25 14:21:49 2006
-+++ zaptel/zaptel.c Fri Aug 11 11:56:20 2006
-@@ -397,7 +397,7 @@
+
+$FreeBSD$
+
+--- zaptel/zaptel.c.orig
++++ zaptel/zaptel.c
+@@ -396,7 +396,7 @@
int schluffen(void *q)
{
@@ -9,3 +12,15 @@
switch(rc)
{
case EINTR:
+@@ -675,7 +675,11 @@
+ /* Free dev_info, if exist */
+ if(dev->si_drv2) free(dev->si_drv2, M_ZAP);
+ dev->si_drv2 = NULL;
++#if (__FreeBSD_version >= 700050)
++ destroy_dev_sched(dev);
++#else
+ destroy_dev(dev);
++#endif
+ return res;
+ }
+