summaryrefslogtreecommitdiff
path: root/libgphoto2_port/usb
diff options
context:
space:
mode:
authorpeterbud <peterbudai@hotmail.com>2016-11-19 23:53:03 +0100
committerMarcus Meissner <marcus@jet.franken.de>2016-11-19 23:53:19 +0100
commit2832b91497226f7a1e8297de77451de3868fbd30 (patch)
tree0aaf4107eb73f22e26996f58e69981965a6b81f0 /libgphoto2_port/usb
parent29a061ce26468331ad97e838e81244531853692a (diff)
downloadlibgphoto2-2832b91497226f7a1e8297de77451de3868fbd30.tar.gz
define ENODATA if not present
Diffstat (limited to 'libgphoto2_port/usb')
-rw-r--r--libgphoto2_port/usb/libusb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libgphoto2_port/usb/libusb.c b/libgphoto2_port/usb/libusb.c
index 97d5a5736..912b67280 100644
--- a/libgphoto2_port/usb/libusb.c
+++ b/libgphoto2_port/usb/libusb.c
@@ -36,6 +36,10 @@
#include <usb.h>
+#ifndef ENODATA
+# define ENODATA 120 /* No data available */
+#endif
+
#include <gphoto2/gphoto2-port.h>
#include <gphoto2/gphoto2-port-result.h>
#include <gphoto2/gphoto2-port-log.h>