diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2014-04-08 06:28:25 +0000 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2014-04-08 06:28:25 +0000 |
commit | 92aaebd7e74b51470a4eece707424449a9e9786b (patch) | |
tree | fa586fb5cb4215158ec28794526d15215a87c8b8 /libgphoto2_port/libusb1 | |
parent | 12f9b4c065115527e4db8626a7c5b630993749fe (diff) | |
download | libgphoto2-92aaebd7e74b51470a4eece707424449a9e9786b.tar.gz |
build if ENODATA is not there (mingw)
From: "Daniel P. Berrange" <dan@berrange.com>
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14884 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'libgphoto2_port/libusb1')
-rw-r--r-- | libgphoto2_port/libusb1/libusb1.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libgphoto2_port/libusb1/libusb1.c b/libgphoto2_port/libusb1/libusb1.c index 2943a31c8..4cecefa0a 100644 --- a/libgphoto2_port/libusb1/libusb1.c +++ b/libgphoto2_port/libusb1/libusb1.c @@ -344,7 +344,9 @@ gp_port_usb_open (GPPort *port) case 0: /* not detached */ break; default: +#ifdef ENODATA if (errno != ENODATA) /* ENODATA - just no driver there */ +#endif gp_port_set_error (port, _("Could not query kernel driver of device.")); } |