[close]
Attachments you submit will be routed for moderation. If you have an account, please
log in first.
Ticket #58: 0001-Do-not-add-a-path-before-libusb.h.patch
| File 0001-Do-not-add-a-path-before-libusb.h.patch,
1.7 KB
(added by ludovicrousseau, 3 years ago) |
|
|
-
From 9110db05b57a21563f24feac2ad47c256b66532a Mon Sep 17 00:00:00 2001
From: Ludovic Rousseau <rousseau@debian.org>
Date: Tue, 17 Aug 2010 20:53:04 +0200
Subject: [PATCH] Do not add a path before libusb.h
The header file should be used as:
#include <libusb.h>
without a directory name.
---
examples/Makefile.am | 2 +-
examples/dpfp.c | 2 +-
examples/dpfp_threaded.c | 2 +-
examples/lsusb.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 9535ea7..846af15 100644
|
a
|
b
|
|
| 1 | | INCLUDES = -I$(top_srcdir) |
| | 1 | INCLUDES = -I$(top_srcdir)/libusb |
| 2 | 2 | noinst_PROGRAMS = lsusb |
| 3 | 3 | |
| 4 | 4 | lsusb_SOURCES = lsusb.c |
-
diff --git a/examples/dpfp.c b/examples/dpfp.c
index af51e0f..7c5f4e4 100644
|
a
|
b
|
|
| 27 | 27 | #include <stdio.h> |
| 28 | 28 | #include <stdlib.h> |
| 29 | 29 | |
| 30 | | #include <libusb/libusb.h> |
| | 30 | #include <libusb.h> |
| 31 | 31 | |
| 32 | 32 | #define EP_INTR (1 | LIBUSB_ENDPOINT_IN) |
| 33 | 33 | #define EP_DATA (2 | LIBUSB_ENDPOINT_IN) |
-
diff --git a/examples/dpfp_threaded.c b/examples/dpfp_threaded.c
index 4641a50..4c90e06 100644
|
a
|
b
|
|
| 28 | 28 | #include <stdio.h> |
| 29 | 29 | #include <stdlib.h> |
| 30 | 30 | |
| 31 | | #include <libusb/libusb.h> |
| | 31 | #include <libusb.h> |
| 32 | 32 | |
| 33 | 33 | #define EP_INTR (1 | LIBUSB_ENDPOINT_IN) |
| 34 | 34 | #define EP_DATA (2 | LIBUSB_ENDPOINT_IN) |
-
diff --git a/examples/lsusb.c b/examples/lsusb.c
index 317adf0..6ab8917 100644
|
a
|
b
|
|
| 20 | 20 | #include <stdio.h> |
| 21 | 21 | #include <sys/types.h> |
| 22 | 22 | |
| 23 | | #include <libusb/libusb.h> |
| | 23 | #include <libusb.h> |
| 24 | 24 | |
| 25 | 25 | static void print_devs(libusb_device **devs) |
| 26 | 26 | { |
Download in other formats: