From 2ba14ee8f06e37b9254a843ecc41e8326f088392 Mon Sep 17 00:00:00 2001 From: jperkin Date: Tue, 10 Dec 2013 13:51:55 +0000 Subject: Fix print types on Darwin, fixes build. --- devel/libusb/distinfo | 3 ++- devel/libusb/patches/patch-darwin.c | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 devel/libusb/patches/patch-darwin.c (limited to 'devel') diff --git a/devel/libusb/distinfo b/devel/libusb/distinfo index 900e55961aa..a7a844f7b04 100644 --- a/devel/libusb/distinfo +++ b/devel/libusb/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.21 2010/12/04 08:12:33 adam Exp $ +$NetBSD: distinfo,v 1.22 2013/12/10 13:51:55 jperkin Exp $ SHA1 (libusb-0.1.12.tar.gz) = 599a5168590f66bc6f1f9a299579fd8500614807 RMD160 (libusb-0.1.12.tar.gz) = 63848df717e00fff67ab30ba86a85466370d4e8e @@ -9,3 +9,4 @@ SHA1 (patch-ac) = cc92318e0979779f6ef03ee653bc94ee2b96a055 SHA1 (patch-ad) = f81135a5f92bf0c2e1ca921368bd39482bd3b580 SHA1 (patch-ae) = 49a01ebe66de4965f3611cf42db09703aa68c415 SHA1 (patch-af) = e46e576a589fb65488011a41df95f744230c0c6c +SHA1 (patch-darwin.c) = 1311114a333045058b8624282b1c0a31a1c557a0 diff --git a/devel/libusb/patches/patch-darwin.c b/devel/libusb/patches/patch-darwin.c new file mode 100644 index 00000000000..62a924a6f46 --- /dev/null +++ b/devel/libusb/patches/patch-darwin.c @@ -0,0 +1,15 @@ +$NetBSD: patch-darwin.c,v 1.1 2013/12/10 13:51:55 jperkin Exp $ + +Fix format type. + +--- darwin.c.orig 2006-03-04 02:52:46.000000000 +0000 ++++ darwin.c +@@ -1064,7 +1064,7 @@ int usb_os_find_devices(struct usb_bus * + result = (*(device))->GetDeviceAddress(device, (USBDeviceAddress *)&address); + + if (usb_debug >= 2) +- fprintf(stderr, "usb_os_find_devices: Found USB device at location 0x%08lx\n", location); ++ fprintf(stderr, "usb_os_find_devices: Found USB device at location 0x%08x\n", (unsigned int)location); + + /* first byte of location appears to be associated with the device's bus */ + if (location >> 24 == bus_loc >> 24) { -- cgit v1.2.3