[package] libdirectfb: When volotile keyword is not used, compiler generates code...
[packages.git] / libs / libusb-legacy / patches / 000-debian_packed.patch
1
2 ---
3  usb.h.in |   10 +++++-----
4  1 file changed, 5 insertions(+), 5 deletions(-)
5
6 --- a/usb.h.in
7 +++ b/usb.h.in
8 @@ -66,14 +66,14 @@
9  struct usb_descriptor_header {
10         u_int8_t  bLength;
11         u_int8_t  bDescriptorType;
12 -};
13 +} __attribute__ ((packed));
14  
15  /* String descriptor */
16  struct usb_string_descriptor {
17         u_int8_t  bLength;
18         u_int8_t  bDescriptorType;
19         u_int16_t wData[1];
20 -};
21 +} __attribute__ ((packed));
22  
23  /* HID descriptor */
24  struct usb_hid_descriptor {
25 @@ -85,7 +85,7 @@
26         /* u_int8_t  bReportDescriptorType; */
27         /* u_int16_t wDescriptorLength; */
28         /* ... */
29 -};
30 +} __attribute__ ((packed));
31  
32  /* Endpoint descriptor */
33  #define USB_MAXENDPOINTS       32
34 @@ -172,7 +172,7 @@
35         u_int8_t  iProduct;
36         u_int8_t  iSerialNumber;
37         u_int8_t  bNumConfigurations;
38 -};
39 +} __attribute__ ((packed));
40  
41  struct usb_ctrl_setup {
42         u_int8_t  bRequestType;
43 @@ -180,7 +180,7 @@
44         u_int16_t wValue;
45         u_int16_t wIndex;
46         u_int16_t wLength;
47 -};
48 +} __attribute__ ((packed));
49  
50  /*
51   * Standard requests
52