summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb.h
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2002-11-06 21:37:21 +0000
committerjoe <joe@FreeBSD.org>2002-11-06 21:37:21 +0000
commit7a3b87e1c5d8ccd746e5d96f98290b5adde2ef6e (patch)
tree41ef72a54a4f7e98e5c9ecb9a76dda839740c460 /sys/dev/usb/usb.h
parent5203196b0a0d022c510861b161a6d2439ccf76bb (diff)
downloadFreeBSD-src-7a3b87e1c5d8ccd746e5d96f98290b5adde2ef6e.zip
FreeBSD-src-7a3b87e1c5d8ccd746e5d96f98290b5adde2ef6e.tar.gz
Packed structures are defined differently in older gcc's, like the one
currently in -stable. Put the exception into usb.h instead of having it hard coded in the sound code.
Diffstat (limited to 'sys/dev/usb/usb.h')
-rw-r--r--sys/dev/usb/usb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/usb/usb.h b/sys/dev/usb/usb.h
index d9f2085..e527859 100644
--- a/sys/dev/usb/usb.h
+++ b/sys/dev/usb/usb.h
@@ -98,7 +98,11 @@ typedef u_int8_t uDWord[4];
#define USETDW(w,v) (*(u_int32_t *)(w) = (v))
#endif
+#if defined(__FreeBSD__) && (__FreeBSD_version <= 500014)
+#define UPACKED __attribute__ ((packed))
+#else
#define UPACKED __packed
+#endif
typedef struct {
uByte bmRequestType;
OpenPOWER on IntegriCloud