summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-06-10 12:03:40 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-06-10 12:03:40 +0200
commit978e0acd26303c3477cfe089d39c7d6d86d6828c (patch)
tree5a7255e702e9ee9cb78fdba9506c286f3dc79a3f
parent540d341d888f5f1f7da574ca5dccce82b7685b2c (diff)
downloadk8055-978e0acd26303c3477cfe089d39c7d6d86d6828c.zip
k8055-978e0acd26303c3477cfe089d39c7d6d86d6828c.tar.gz
force use of libusb-1.0
-rw-r--r--CMakeLists.txt2
-rw-r--r--libk8055/main.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a820b55..11ef350 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -44,7 +44,7 @@ if(NOT WIN32)
FIND_PACKAGE(PkgConfig)
endif()
if(PKG_CONFIG_FOUND)
- pkg_check_modules(LIBUSB libusb)
+ pkg_check_modules(LIBUSB libusb-1.0)
else()
MESSAGE(STATUS "Checking for module 'libusb'")
endif()
diff --git a/libk8055/main.c b/libk8055/main.c
index 50e361c..a62050d 100644
--- a/libk8055/main.c
+++ b/libk8055/main.c
@@ -154,7 +154,7 @@ int main ( int argc,char* params[] ) {
* and enable debug mode
*/
if ( debug )
- usb_set_debug( 2 );
+ libusb_set_debug( 2 );
dev = k8055_alloc();
if(dev==NULL) {
fprintf(stderr,"Could not allocate data for k8055_dev struct.\n");