aboutsummaryrefslogtreecommitdiff
path: root/misc/dahdi-kmod/files/patch-freebsd-include-dahdi-compat-bsd.h
diff options
context:
space:
mode:
authorMax Khon <fjoe@FreeBSD.org>2015-03-21 18:58:30 +0000
committerMax Khon <fjoe@FreeBSD.org>2015-03-21 18:58:30 +0000
commit4e966029c2d4539239aff8a5fd57f7127fabcc7b (patch)
tree78140dd838f540968a8fdb798278080cd923db38 /misc/dahdi-kmod/files/patch-freebsd-include-dahdi-compat-bsd.h
parent796146e3a0c3a23d548d24aad19db092c9ea92c5 (diff)
downloadports-4e966029c2d4539239aff8a5fd57f7127fabcc7b.tar.gz
ports-4e966029c2d4539239aff8a5fd57f7127fabcc7b.zip
Fix build with clang 3.6.
Notes
Notes: svn path=/head/; revision=381815
Diffstat (limited to 'misc/dahdi-kmod/files/patch-freebsd-include-dahdi-compat-bsd.h')
-rw-r--r--misc/dahdi-kmod/files/patch-freebsd-include-dahdi-compat-bsd.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/misc/dahdi-kmod/files/patch-freebsd-include-dahdi-compat-bsd.h b/misc/dahdi-kmod/files/patch-freebsd-include-dahdi-compat-bsd.h
index 0f95e4444217..5ab16f64dcb2 100644
--- a/misc/dahdi-kmod/files/patch-freebsd-include-dahdi-compat-bsd.h
+++ b/misc/dahdi-kmod/files/patch-freebsd-include-dahdi-compat-bsd.h
@@ -1,5 +1,5 @@
---- freebsd/include/dahdi/compat/bsd.h.orig 2010-10-05 23:41:23.000000000 +0700
-+++ freebsd/include/dahdi/compat/bsd.h 2010-10-05 23:42:01.000000000 +0700
+--- freebsd/include/dahdi/compat/bsd.h.orig 2015-03-22 00:41:01.923397000 +0600
++++ freebsd/include/dahdi/compat/bsd.h 2015-03-22 00:51:34.101470000 +0600
@@ -66,9 +66,11 @@
#define __be32 u_int32_t
@@ -12,3 +12,12 @@
#define __BIG_ENDIAN_BITFIELD
#define __constant_htons(x) (x)
#endif
+@@ -454,7 +456,7 @@
+ #define _module_ptr_args __CONCAT(_module_ptr_args_, __LINE__)
+ #define _module_ptr_init(field, val) \
+ static struct module_ptr_args _module_ptr_args = { \
+- (const void **) &(THIS_MODULE->field), val \
++ (const void **) (uintptr_t) &(THIS_MODULE->field), val \
+ }; \
+ SYSINIT(__CONCAT(_module_ptr_args, _init), \
+ SI_SUB_KLD, SI_ORDER_FIRST, \