17885
|
1 |
--- libgphoto2-2.4.9/libgphoto2_port/usbscsi/linux.c-orig 2010-04-20 11:07:39.992083298 -0500
|
|
2 |
+++ libgphoto2-2.4.9/libgphoto2_port/usbscsi/linux.c 2010-04-20 11:07:48.360592381 -0500
|
|
3 |
@@ -24,6 +24,7 @@
|
|
4 |
#include <unistd.h>
|
|
5 |
#include <string.h>
|
|
6 |
#include <fcntl.h>
|
|
7 |
+#include <limits.h>
|
|
8 |
#include <sys/stat.h>
|
|
9 |
#include <sys/types.h>
|
|
10 |
#include <sys/param.h>
|
|
11 |
--- libgphoto2-2.4.9/libgphoto2_port/usbdiskdirect/linux.c-orig 2010-04-20 11:06:16.410540653 -0500
|
|
12 |
+++ libgphoto2-2.4.9/libgphoto2_port/usbdiskdirect/linux.c 2010-04-20 11:06:50.364528307 -0500
|
|
13 |
@@ -24,6 +24,7 @@
|
|
14 |
#include <unistd.h>
|
|
15 |
#include <string.h>
|
|
16 |
#include <fcntl.h>
|
|
17 |
+#include <limits.h>
|
|
18 |
#include <sys/stat.h>
|
|
19 |
#include <sys/types.h>
|
|
20 |
#include <sys/param.h>
|
|
21 |
--- libgphoto2-2.4.9/libgphoto2_port/configure.ac-orig 2010-04-20 11:12:05.460272323 -0500
|
|
22 |
+++ libgphoto2-2.4.9/libgphoto2_port/configure.ac 2010-04-20 11:33:14.304568030 -0500
|
|
23 |
@@ -354,7 +354,7 @@ AC_CHECK_LIB(pthread, pthread_create)
|
|
24 |
GP_CONFIG_MSG([USB ports])
|
|
25 |
GP_CHECK_LIBRARY([LIBUSB],[libusb],[>= 0.1.5],
|
|
26 |
[usb.h],[usb_open],[
|
|
27 |
- IOLIB_SUBDIRS="$IOLIB_SUBDIRS usb usbdiskdirect usbscsi"
|
|
28 |
+ IOLIB_SUBDIRS="$IOLIB_SUBDIRS usb usbdiskdirect"
|
|
29 |
],[],
|
|
30 |
[disable-explicitly],
|
|
31 |
[http://libusb.sourceforge.net/]
|
|
32 |
@@ -363,6 +363,14 @@ GP_CHECK_LIBRARY([LIBUSB],[libusb],[>= 0
|
|
33 |
dnl depends on libusb's availability
|
|
34 |
GP_UDEV([test "x$have_LIBUSB" = xyes])
|
|
35 |
|
|
36 |
+if test "x$have_LIBUSB" = "xyes"; then
|
|
37 |
+ AC_CHECK_HEADER([scsi/sg.h],
|
|
38 |
+ [have_sg=yes])
|
|
39 |
+ if test "x$have_sg" = "xyes"; then
|
|
40 |
+ IOLIB_SUBDIRS="$IOLIB_SUBDIRS usbscsi"
|
|
41 |
+ fi
|
|
42 |
+fi
|
|
43 |
+
|
|
44 |
dnl ---------------------------------------------------------------------------
|
|
45 |
dnl disk - hal and various stuff
|
|
46 |
dnl ---------------------------------------------------------------------------
|