The libusb-1.0 directory name belongs in the compile command, e.g.
via pkg-config --cflags. Fixes #58.
-INCLUDES = -I$(top_srcdir)
+INCLUDES = -I$(top_srcdir)/libusb
noinst_PROGRAMS = lsusb
lsusb_SOURCES = lsusb.c
#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)
#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)
#include <stdio.h>
#include <sys/types.h>
-#include <libusb/libusb.h>
+#include <libusb.h>
static void print_devs(libusb_device **devs)
{