aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJosef Karthauser <joe@FreeBSD.org>2002-11-06 21:37:21 +0000
committerJosef Karthauser <joe@FreeBSD.org>2002-11-06 21:37:21 +0000
commit8ecdcb3ff3a82e544bdd91e4f49a463916a90c28 (patch)
tree41ef72a54a4f7e98e5c9ecb9a76dda839740c460 /sys/dev
parenta1571cd12fcfe3d85fec6d33b5ce9d71c1d6bcac (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/sound/usb/uaudioreg.h4
-rw-r--r--sys/dev/usb/usb.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/sound/usb/uaudioreg.h b/sys/dev/sound/usb/uaudioreg.h
index 4d6e834d0f9b..20c87cbe333e 100644
--- a/sys/dev/sound/usb/uaudioreg.h
+++ b/sys/dev/sound/usb/uaudioreg.h
@@ -55,10 +55,6 @@
#define UDESCSUB_AC_PROCESSING 7
#define UDESCSUB_AC_EXTENSION 8
-#if defined(__FreeBSD__) && (__FreeBSD_version <= 500014)
-#define UPACKED __attribute__ ((packed))
-#endif
-
/* The first fields are identical to usb_endpoint_descriptor_t */
typedef struct {
uByte bLength;
diff --git a/sys/dev/usb/usb.h b/sys/dev/usb/usb.h
index d9f208588025..e5278596f3ce 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;