Skip to content
Snippets Groups Projects
Commit 2a3652dc authored by deuce's avatar deuce
Browse files

Added include path for NetBSD to find pthread.h

Defined USE_XP_SEMAPHORES so semaphore.h is not included (Could have caused
different sizes for sem_t)
parent c71b2889
Branches
Tags
No related merge requests found
......@@ -80,7 +80,7 @@ include targets.mk # defines all targets
include objects.mk # defines $(OBJS)
ifeq ($(os),netbsd)
CFLAGS += -D__unix__
CFLAGS += -D__unix__ -I/usr/pkg/include
endif
ifdef USE_DIALOG
......@@ -95,6 +95,15 @@ ifdef USE_FLTK
OBJS += $(ODIR)$(SLASH)uifcfltk.$(OFILE)
endif
# So far, only QNX has sem_timedwait()
ifeq ($(os),qnx)
LFLAGS := -lm -lsocket
else
CFLAGS += -DUSE_XP_SEMAPHORES
USE_XP_SEMAPHORES := 1
endif
vpath %.c ..
vpath %.c $(UIFC)
vpath %.cpp $(UIFC)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment