[Pkg-bluetooth-commits] r1206 - in /packages/bluez/trunk/debian/patches: 09_fix_ftbfs_with 09_fix_ftbfs_with_c99.patch

iwamatsu at users.alioth.debian.org iwamatsu at users.alioth.debian.org
Wed Mar 21 07:30:28 UTC 2012


Author: iwamatsu
Date: Wed Mar 21 07:30:27 2012
New Revision: 1206

URL: http://svn.debian.org/wsvn/pkg-bluetooth/?sc=1&rev=1206
Log:
Add 09_fix_ftbfs_with_c99.patch and remove 09_fix_ftbfs_with

Added:
    packages/bluez/trunk/debian/patches/09_fix_ftbfs_with_c99.patch
Removed:
    packages/bluez/trunk/debian/patches/09_fix_ftbfs_with

Added: packages/bluez/trunk/debian/patches/09_fix_ftbfs_with_c99.patch
URL: http://svn.debian.org/wsvn/pkg-bluetooth/packages/bluez/trunk/debian/patches/09_fix_ftbfs_with_c99.patch?rev=1206&op=file
==============================================================================
--- packages/bluez/trunk/debian/patches/09_fix_ftbfs_with_c99.patch (added)
+++ packages/bluez/trunk/debian/patches/09_fix_ftbfs_with_c99.patch Wed Mar 21 07:30:27 2012
@@ -1,0 +1,27 @@
+http://permalink.gmane.org/gmane.linux.bluez.kernel/22306
+
+diff --git a/lib/bluetooth.h b/lib/bluetooth.h
+index 0541842..5b2153d 100644
+--- a/lib/bluetooth.h
++++ b/lib/bluetooth.h
+@@ -140,16 +140,16 @@ enum {
+ #define bt_get_unaligned(ptr)			\
+ ({						\
+ 	struct __attribute__((packed)) {	\
+-		typeof(*(ptr)) __v;		\
+-	} *__p = (typeof(__p)) (ptr);		\
++		__typeof__(*(ptr)) __v;		\
++	} *__p = (__typeof__(__p)) (ptr);	\
+ 	__p->__v;				\
+ })
+ 
+ #define bt_put_unaligned(val, ptr)		\
+ do {						\
+ 	struct __attribute__((packed)) {	\
+-		typeof(*(ptr)) __v;		\
+-	} *__p = (typeof(__p)) (ptr);		\
++		__typeof__(*(ptr)) __v;		\
++	} *__p = (__typeof__(__p)) (ptr);	\
+ 	__p->__v = (val);			\
+ } while(0)
+ 




More information about the Pkg-bluetooth-commits mailing list