Package: libusb / 2:0.1.12-25

00_packed.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
 usb.h.in |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

--- a/usb.h.in
+++ b/usb.h.in
@@ -66,14 +66,14 @@
 struct usb_descriptor_header {
 	u_int8_t  bLength;
 	u_int8_t  bDescriptorType;
-};
+} __attribute__ ((packed));
 
 /* String descriptor */
 struct usb_string_descriptor {
 	u_int8_t  bLength;
 	u_int8_t  bDescriptorType;
 	u_int16_t wData[1];
-};
+} __attribute__ ((packed));
 
 /* HID descriptor */
 struct usb_hid_descriptor {
@@ -85,7 +85,7 @@
 	/* u_int8_t  bReportDescriptorType; */
 	/* u_int16_t wDescriptorLength; */
 	/* ... */
-};
+} __attribute__ ((packed));
 
 /* Endpoint descriptor */
 #define USB_MAXENDPOINTS	32
@@ -172,7 +172,7 @@
 	u_int8_t  iProduct;
 	u_int8_t  iSerialNumber;
 	u_int8_t  bNumConfigurations;
-};
+} __attribute__ ((packed));
 
 struct usb_ctrl_setup {
 	u_int8_t  bRequestType;
@@ -180,7 +180,7 @@
 	u_int16_t wValue;
 	u_int16_t wIndex;
 	u_int16_t wLength;
-};
+} __attribute__ ((packed));
 
 /*
  * Standard requests