summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorLudovic Rousseau <rousseau@debian.org>2010-08-17 20:53:04 +0200
committerPeter Stuge <peter@stuge.se>2010-11-22 05:25:53 +0100
commit2aa8984e59cf0f492e7fbebb8924f54f6160cc5e (patch)
tree0f1588392dde1d88312d640e7ca58aec562f917e /examples
parent7da756e09fd97efad2b35b5cee0e2b2550aac2cb (diff)
downloadlibusb-2aa8984e59cf0f492e7fbebb8924f54f6160cc5e.tar.gz
examples: #include <libusb.h> without directory name
The libusb-1.0 directory name belongs in the compile command, e.g. via pkg-config --cflags. Fixes #58.
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile.am2
-rw-r--r--examples/dpfp.c2
-rw-r--r--examples/dpfp_threaded.c2
-rw-r--r--examples/lsusb.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 9535ea7..846af15 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -1,4 +1,4 @@
-INCLUDES = -I$(top_srcdir)
+INCLUDES = -I$(top_srcdir)/libusb
noinst_PROGRAMS = lsusb
lsusb_SOURCES = lsusb.c
diff --git a/examples/dpfp.c b/examples/dpfp.c
index a35a373..5127dde 100644
--- a/examples/dpfp.c
+++ b/examples/dpfp.c
@@ -27,7 +27,7 @@
#include <stdio.h>
#include <stdlib.h>
-#include <libusb/libusb.h>
+#include <libusb.h>
#define EP_INTR (1 | LIBUSB_ENDPOINT_IN)
#define EP_DATA (2 | LIBUSB_ENDPOINT_IN)
diff --git a/examples/dpfp_threaded.c b/examples/dpfp_threaded.c
index 7b98192..e56ea88 100644
--- a/examples/dpfp_threaded.c
+++ b/examples/dpfp_threaded.c
@@ -28,7 +28,7 @@
#include <stdio.h>
#include <stdlib.h>
-#include <libusb/libusb.h>
+#include <libusb.h>
#define EP_INTR (1 | LIBUSB_ENDPOINT_IN)
#define EP_DATA (2 | LIBUSB_ENDPOINT_IN)
diff --git a/examples/lsusb.c b/examples/lsusb.c
index 317adf0..6ab8917 100644
--- a/examples/lsusb.c
+++ b/examples/lsusb.c
@@ -20,7 +20,7 @@
#include <stdio.h>
#include <sys/types.h>
-#include <libusb/libusb.h>
+#include <libusb.h>
static void print_devs(libusb_device **devs)
{