diff options
author | peterbud <peterbudai@hotmail.com> | 2016-11-19 23:53:03 +0100 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2016-11-19 23:53:19 +0100 |
commit | 2832b91497226f7a1e8297de77451de3868fbd30 (patch) | |
tree | 0aaf4107eb73f22e26996f58e69981965a6b81f0 /libgphoto2_port/usb | |
parent | 29a061ce26468331ad97e838e81244531853692a (diff) | |
download | libgphoto2-2832b91497226f7a1e8297de77451de3868fbd30.tar.gz |
define ENODATA if not present
Diffstat (limited to 'libgphoto2_port/usb')
-rw-r--r-- | libgphoto2_port/usb/libusb.c | 4 |
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> |