23698082 invalid alignment of "os_priv" in libusb-1 results in SIGBUS s11u3-sru
authorJan Parcel <jan.parcel@oracle.com>
Fri, 08 Jul 2016 09:47:12 -0700
branchs11u3-sru
changeset 6383 b75d30310eac
parent 6371 ff4bcb687e21
child 6387 77663b44ddf4
23698082 invalid alignment of "os_priv" in libusb-1 results in SIGBUS
components/libusb-1/patches/03-sparcv9_alignment.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/libusb-1/patches/03-sparcv9_alignment.patch	Fri Jul 08 09:47:12 2016 -0700
@@ -0,0 +1,25 @@
+Fix alignment of "os_priv" attribute in structures
+libusb_device and libusb_device_handle on Solaris sparcv9.
+
+--- libusb-1.0.20/libusb/libusbi.h.orig	Sat Jun 25 20:45:07 2016
++++ libusb-1.0.20/libusb/libusbi.h	Sat Jun 25 20:45:34 2016
+@@ -353,6 +353,9 @@
+ #else
+ 	[0] /* non-standard, but usually working code */
+ #endif
++#if defined(OS_SUNOS)
++	__attribute__((aligned(8)))
++#endif
+ 	;
+ };
+ 
+@@ -370,6 +373,9 @@
+ #else
+ 	[0] /* non-standard, but usually working code */
+ #endif
++#if defined(OS_SUNOS)
++        __attribute__((aligned(8)))
++#endif 
+ 	;
+ };
+