opnsense-ports/sysutils/usbutils/files/patch-lsusb.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

15 lines
343 B
C

--- 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>
-#include <byteswap.h>
+#if defined(HAVE_UNISTD_H)
+#include <unistd.h>
+#endif
#include <usb.h>
#include "names.h"