[svn-commits] fjoe: freebsd/trunk r10621 - /freebsd/trunk/drivers/dahdi/dahdi-base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Apr 3 01:28:10 CDT 2012


Author: fjoe
Date: Tue Apr  3 01:28:06 2012
New Revision: 10621

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10621
Log:
Define seldrain() for older FreeBSD versions.

Modified:
    freebsd/trunk/drivers/dahdi/dahdi-base.c

Modified: freebsd/trunk/drivers/dahdi/dahdi-base.c
URL: http://svnview.digium.com/svn/dahdi/freebsd/trunk/drivers/dahdi/dahdi-base.c?view=diff&rev=10621&r1=10620&r2=10621
==============================================================================
--- freebsd/trunk/drivers/dahdi/dahdi-base.c (original)
+++ freebsd/trunk/drivers/dahdi/dahdi-base.c Tue Apr  3 01:28:06 2012
@@ -196,10 +196,18 @@
 	spin_unlock_irqrestore(&pseudo_free_list_lock, flags);
 }
 
+#if __FreeBSD_version < 802514
+static void
+seldrain(struct selinfo *sel)
+{
+	selwakeup(sel);
+}
+#endif
+
 static void
 dahdi_poll_wait(struct file *fp, struct selinfo *sel, poll_table *p)
 {
-	poll_wait(fp, (wait_queue_head_t *)sel, p);
+	poll_wait(fp, (wait_queue_head_t *) sel, p);
 }
 
 static void




More information about the svn-commits mailing list