$OpenBSD: patch-libgphoto2_port_usb_libusb_c,v 1.3 2016/03/24 09:48:17 ajacoutot Exp $
--- libgphoto2_port/usb/libusb.c.orig	Sun Feb  7 20:56:40 2016
+++ libgphoto2_port/usb/libusb.c	Thu Mar 24 10:04:47 2016
@@ -40,6 +40,10 @@
 #include <gphoto2/gphoto2-port-result.h>
 #include <gphoto2/gphoto2-port-log.h>
 
+#if !defined(ENODATA) && defined(ENOENT)
+#define ENODATA ENOENT
+#endif
+
 #ifdef ENABLE_NLS
 #  include <libintl.h>
 #  undef _
