[Pkg-bluetooth-commits] r1432 - in /packages/bluez/trunk/debian/patches: fix_ftbfs_with_c99.patch series

iwamatsu at users.alioth.debian.org iwamatsu at users.alioth.debian.org
Tue Jul 22 00:24:15 UTC 2014


Author: iwamatsu
Date: Tue Jul 22 00:24:14 2014
New Revision: 1432

URL: http://svn.debian.org/wsvn/pkg-bluetooth/?sc=1&rev=1432
Log:
Add patches/fix_ftbfs_with_c99.patch

This fixes FTBFS with C99.


Added:
    packages/bluez/trunk/debian/patches/fix_ftbfs_with_c99.patch
Modified:
    packages/bluez/trunk/debian/patches/series

Added: packages/bluez/trunk/debian/patches/fix_ftbfs_with_c99.patch
URL: http://svn.debian.org/wsvn/pkg-bluetooth/packages/bluez/trunk/debian/patches/fix_ftbfs_with_c99.patch?rev=1432&op=file
==============================================================================
--- packages/bluez/trunk/debian/patches/fix_ftbfs_with_c99.patch	(added)
+++ packages/bluez/trunk/debian/patches/fix_ftbfs_with_c99.patch	Tue Jul 22 00:24:14 2014
@@ -0,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)
+ 

Modified: packages/bluez/trunk/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-bluetooth/packages/bluez/trunk/debian/patches/series?rev=1432&op=diff
==============================================================================
--- packages/bluez/trunk/debian/patches/series	(original)
+++ packages/bluez/trunk/debian/patches/series	Tue Jul 22 00:24:14 2014
@@ -1,2 +1,3 @@
 0001-work-around-Logitech-diNovo-Edge-keyboard-firmware-i.patch
 bluetooth.conf.patch
+fix_ftbfs_with_c99.patch




More information about the Pkg-bluetooth-commits mailing list