Fixes for DragonFly BSD
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
This commit is contained in:
parent
89b5d2d3da
commit
91289a24a7
4
Makefile
4
Makefile
|
@ -41,7 +41,7 @@ ifeq ($(UNAME_S),Darwin) # Mac OS X/MacPorts stuff
|
|||
PORTS_CFLAGS := -I/opt/local/include
|
||||
PORTS_LDFLAGS := -L/opt/local/lib
|
||||
else
|
||||
ifneq ($(filter $(UNAME_S),OpenBSD NetBSD),)
|
||||
ifneq ($(filter $(UNAME_S),OpenBSD NetBSD DragonFly),)
|
||||
PORTS_CFLAGS := $(shell pkg-config --cflags libusb)
|
||||
PORTS_LDFLAGS := $(shell pkg-config --libs libusb) -ltermcap -pthread
|
||||
else
|
||||
|
@ -64,7 +64,7 @@ else
|
|||
|
||||
ifneq ($(filter $(UNAME_S),OpenBSD NetBSD),)
|
||||
OS_LIBS =
|
||||
else ifneq ($(filter $(UNAME_S),FreeBSD),)
|
||||
else ifneq ($(filter $(UNAME_S),FreeBSD DragonFly),)
|
||||
OS_CFLAGS = -pthread
|
||||
OS_LIBS = -lpthread
|
||||
else
|
||||
|
|
|
@ -44,8 +44,13 @@
|
|||
|
||||
#elif defined(__FreeBSD__) || defined(__DragonFly__)
|
||||
|
||||
#if defined(__FreeBSD__)
|
||||
#include <dev/ppbus/ppi.h>
|
||||
#include <dev/ppbus/ppbconf.h>
|
||||
#else /* __DragonFly__ */
|
||||
#include <dev/misc/ppi/ppi.h>
|
||||
#include <bus/ppbus/ppbconf.h>
|
||||
#endif
|
||||
|
||||
#define par_claim(fd) (0)
|
||||
#define par_write_data(fd, ptr) ioctl(fd, PPISDATA, ptr)
|
||||
|
|
Loading…
Reference in New Issue