Fixes for DragonFly BSD

Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
This commit is contained in:
Tamas TEVESZ 2013-12-12 10:49:48 +01:00 committed by Daniel Beer
parent 89b5d2d3da
commit 91289a24a7
2 changed files with 7 additions and 2 deletions

View File

@ -41,7 +41,7 @@ ifeq ($(UNAME_S),Darwin) # Mac OS X/MacPorts stuff
PORTS_CFLAGS := -I/opt/local/include PORTS_CFLAGS := -I/opt/local/include
PORTS_LDFLAGS := -L/opt/local/lib PORTS_LDFLAGS := -L/opt/local/lib
else else
ifneq ($(filter $(UNAME_S),OpenBSD NetBSD),) ifneq ($(filter $(UNAME_S),OpenBSD NetBSD DragonFly),)
PORTS_CFLAGS := $(shell pkg-config --cflags libusb) PORTS_CFLAGS := $(shell pkg-config --cflags libusb)
PORTS_LDFLAGS := $(shell pkg-config --libs libusb) -ltermcap -pthread PORTS_LDFLAGS := $(shell pkg-config --libs libusb) -ltermcap -pthread
else else
@ -64,7 +64,7 @@ else
ifneq ($(filter $(UNAME_S),OpenBSD NetBSD),) ifneq ($(filter $(UNAME_S),OpenBSD NetBSD),)
OS_LIBS = OS_LIBS =
else ifneq ($(filter $(UNAME_S),FreeBSD),) else ifneq ($(filter $(UNAME_S),FreeBSD DragonFly),)
OS_CFLAGS = -pthread OS_CFLAGS = -pthread
OS_LIBS = -lpthread OS_LIBS = -lpthread
else else

View File

@ -44,8 +44,13 @@
#elif defined(__FreeBSD__) || defined(__DragonFly__) #elif defined(__FreeBSD__) || defined(__DragonFly__)
#if defined(__FreeBSD__)
#include <dev/ppbus/ppi.h> #include <dev/ppbus/ppi.h>
#include <dev/ppbus/ppbconf.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_claim(fd) (0)
#define par_write_data(fd, ptr) ioctl(fd, PPISDATA, ptr) #define par_write_data(fd, ptr) ioctl(fd, PPISDATA, ptr)