openbsd-ports/devel/libftdi/patches/patch-src_ftdi_c
ajacoutot fcbe5f3ae2 Sync dependencies after move from libusb to libusb-compat and fix a
couple of fallouts. Note that these ports are only the ones that used to
have a direct dependency on devel/libusb so there may be some other
hidden ports that may break because of the switch. If that's the case,
no need to start ranting all over but instead tell me which one(s)
break. Thanks.

Note: sysutils/nut hasn't been fixed yet but will be today.
2011-11-13 13:54:04 +00:00

15 lines
430 B
Plaintext

$OpenBSD: patch-src_ftdi_c,v 1.1 2011/11/13 13:54:04 ajacoutot Exp $
--- src/ftdi.c.orig Sat Nov 12 23:30:50 2011
+++ src/ftdi.c Sat Nov 12 23:31:17 2011
@@ -45,6 +45,10 @@
#include <linux/usbdevice_fs.h>
#endif
+#if !defined(ENODATA) && defined(ENOENT)
+#define ENODATA ENOENT
+#endif
+
#define ftdi_error_return(code, str) do { \
ftdi->error_str = str; \
return code; \