mirror of
https://github.com/greatscottgadgets/ubertooth.git
synced 2026-10-12 02:15:11 +00:00
FreeBSD build support thanks to a patch from deetch
This commit is contained in:
@@ -18,7 +18,13 @@
|
||||
# Boston, MA 02110-1301, USA.
|
||||
|
||||
CC = gcc
|
||||
LIBUSB = usb-1.0
|
||||
OS = $(shell uname)
|
||||
ifeq ($(OS), FreeBSD)
|
||||
LIBUSB = usb
|
||||
CFLAGS += -DFREEBSD
|
||||
else
|
||||
LIBUSB = usb-1.0
|
||||
endif
|
||||
LIBBTBB = btbb
|
||||
LDFLAGS += -l$(LIBUSB) -l$(LIBBTBB)
|
||||
|
||||
|
||||
@@ -22,7 +22,11 @@
|
||||
#ifndef __UBERTOOTH_H__
|
||||
#define __UBERTOOTH_H__
|
||||
|
||||
#ifdef FREEBSD
|
||||
#include <libusb.h>
|
||||
#else
|
||||
#include <libusb-1.0/libusb.h>
|
||||
#endif
|
||||
|
||||
#define u8 uint8_t
|
||||
#define u16 uint16_t
|
||||
|
||||
Reference in New Issue
Block a user