diff options
author | Henrik Brix Andersen <brix@FreeBSD.org> | 2010-07-26 13:20:17 +0000 |
---|---|---|
committer | Henrik Brix Andersen <brix@FreeBSD.org> | 2010-07-26 13:20:17 +0000 |
commit | 2b0df5a72d143228d00599de34a33bb1f00973ea (patch) | |
tree | 0d4d4ad833d71e180bf7d07aa500461865d82551 /sysutils/usbutils/files/patch-lsusb.c | |
parent | 24c78aae279d7c2af27637dc1c0bce3d6b1bfc96 (diff) |
Notes
Diffstat (limited to 'sysutils/usbutils/files/patch-lsusb.c')
-rw-r--r-- | sysutils/usbutils/files/patch-lsusb.c | 34 |
1 files changed, 8 insertions, 26 deletions
diff --git a/sysutils/usbutils/files/patch-lsusb.c b/sysutils/usbutils/files/patch-lsusb.c index 40a7e3c1ab15..86841c67cc56 100644 --- a/sysutils/usbutils/files/patch-lsusb.c +++ b/sysutils/usbutils/files/patch-lsusb.c @@ -1,33 +1,15 @@ ---- lsusb.c.orig 2007-10-23 23:04:32.000000000 +0200 -+++ lsusb.c 2007-11-14 20:50:37.000000000 +0100 -@@ -35,13 +35,29 @@ +--- lsusb.c.orig 2009-08-17 22:28:42.000000000 +0000 ++++ lsusb.c 2010-07-26 13:08:52.000000000 +0000 +@@ -31,8 +31,11 @@ + #include <string.h> #include <errno.h> #include <stdio.h> ++#include <stdlib.h> #include <stdarg.h> -+ -+#if defined(HAVE_ASM_BYTEORDER_H) - #include <asm/byteorder.h> - #define le16_to_cpu __le16_to_cpu -+ -+#elif defined(HAVE_MACHINE_ENDIAN_H) -+#include <machine/endian.h> -+#if _BYTE_ORDER == _LITTLE_ENDIAN -+#define le16_to_cpu(x) (x) -+#else -+#define le16_to_cpu __bswap16 +-#include <byteswap.h> ++#if defined(HAVE_UNISTD_H) ++#include <unistd.h> +#endif -+ -+#else -+#error no le16_to_cpu implementation is available -+#endif -+ #include <usb.h> - /* NOTE: that should be <libusb.h> and it should include -- * <linux/usb_ch9.h> ... without it, we keep accumulating -+ * <linux/usb/ch9.h> ... without it, we keep accumulating - * potentially broken variants of standard types ... -+ * also <linux/usb/cdc.h>, <linux/usb/audio.h>, etc - */ - #include "names.h" |