Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/usbutils/files: usbutils-0.87-fbsd.patch
Date: Sun, 25 Apr 2010 18:02:18
Message-Id: 20100425180210.3D3A32C043@corvid.gentoo.org
1 aballier 10/04/25 18:02:10
2
3 Added: usbutils-0.87-fbsd.patch
4 Log:
5 Fix build on FreeBSD, bug #316671, by Toffanin [Gentoo/FreeBSD AT] <toffanin.mauro@×××××.com>
6 (Portage version: 2.2_rc67/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 sys-apps/usbutils/files/usbutils-0.87-fbsd.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/usbutils/files/usbutils-0.87-fbsd.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/usbutils/files/usbutils-0.87-fbsd.patch?rev=1.1&content-type=text/plain
13
14 Index: usbutils-0.87-fbsd.patch
15 ===================================================================
16 --- usbutils-0.87/configure.ac
17 +++ usbutils-0.87/configure.ac
18 @@ -34,6 +34,8 @@
19 Makefile
20 ])
21
22 +AC_CHECK_HEADERS([byteswap.h])
23 +
24 AC_OUTPUT
25 AC_MSG_RESULT([
26 usbutils $VERSION
27 --- usbutils-0.87/lsusb.c
28 +++ usbutils-0.87/lsusb.c
29 @@ -32,8 +32,13 @@
30 #include <errno.h>
31 #include <stdio.h>
32 #include <stdarg.h>
33 +
34 +#ifdef HAVE_BYTESWAP_H
35 #include <byteswap.h>
36 +#endif
37 +
38 #include <usb.h>
39 +#include <unistd.h>
40
41 #include "names.h"
42 #include "devtree.h"