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

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Aug 23 23:11:36 CDT 2010


Author: fjoe
Date: Mon Aug 23 23:11:34 2010
New Revision: 9180

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9180
Log:
Fix build on FreeBSD 8.x/amd64 and later.

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

Modified: freebsd/trunk/drivers/dahdi/wctc4xxp/base.c
URL: http://svnview.digium.com/svn/dahdi/freebsd/trunk/drivers/dahdi/wctc4xxp/base.c?view=diff&rev=9180&r1=9179&r2=9180
==============================================================================
--- freebsd/trunk/drivers/dahdi/wctc4xxp/base.c (original)
+++ freebsd/trunk/drivers/dahdi/wctc4xxp/base.c Mon Aug 23 23:11:34 2010
@@ -32,11 +32,6 @@
 #include <machine/resource.h>
 #include <net/ethernet.h>
 #include <vm/uma.h>
-
-#ifdef wmb
-#undef wmb
-#endif
-#define wmb()
 #else /* !__FreeBSD__ */
 #include <linux/kernel.h>
 #include <linux/errno.h>
@@ -63,6 +58,11 @@
 #include "dahdi/kernel.h"
 
 #if defined(__FreeBSD__)
+#ifdef wmb
+#undef wmb
+#endif
+#define wmb()
+
 #define DMA_FROM_DEVICE	0
 #define DMA_TO_DEVICE	1
 




More information about the svn-commits mailing list