Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 135899 Details for
Bug 197678
usbutils-0.73 does not compile on FreeBSD
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
files/usbutils-0.73-byteorder.patch
usbutils-0.73-byteorder.patch (text/plain), 1.35 KB, created by
Joe Peterson (RETIRED)
on 2007-11-13 15:31:16 UTC
(
hide
)
Description:
files/usbutils-0.73-byteorder.patch
Filename:
MIME Type:
Creator:
Joe Peterson (RETIRED)
Created:
2007-11-13 15:31:16 UTC
Size:
1.35 KB
patch
obsolete
>diff -ur usbutils-0.73.old/configure.in usbutils-0.73.new/configure.in >--- usbutils-0.73.old/configure.in 2007-11-13 10:19:41 -0500 >+++ usbutils-0.73.new/configure.in 2007-11-13 10:23:12 -0500 >@@ -20,10 +20,11 @@ > AC_FUNC_ALLOCA > AC_HEADER_DIRENT > AC_HEADER_STDC >-AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/ioctl.h sys/param.h unistd.h getopt.h errno.h ]) >+AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/ioctl.h sys/param.h unistd.h getopt.h errno.h asm/byteorder.h machine/endian.h]) > >-# Checks for typedefs, structures, and compiler characteristics. >+# Checks for typedefs, structures, byte order, and compiler characteristics. > AC_C_CONST >+AC_C_BIGENDIAN > AC_TYPE_OFF_T > AC_TYPE_SIZE_T > >diff -ur usbutils-0.73.old/lsusb.c usbutils-0.73.new/lsusb.c >--- usbutils-0.73.old/lsusb.c 2007-11-13 10:19:41 -0500 >+++ usbutils-0.73.new/lsusb.c 2007-11-13 10:23:12 -0500 >@@ -35,8 +35,17 @@ > #include <errno.h> > #include <stdio.h> > #include <stdarg.h> >-#include <asm/byteorder.h> >-#define le16_to_cpu __le16_to_cpu >+#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> >+# ifndef WORDS_BIGENDIAN >+# define le16_to_cpu(x) (x) >+# else >+# define le16_to_cpu __bswap16 >+# endif >+#endif > #include <usb.h> > > /* NOTE: that should be <libusb.h> and it should include
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 197678
:
134833
|
134834
|
134912
|
134913
|
135897
|
135899
|
135900