diff --git a/src/sbbs3/scfg/GNUmakefile b/src/sbbs3/scfg/GNUmakefile index 9ae980ee55dde4ca236250bf65fdb4f66562cc32..8b02fc3e9d43eed470f0f8a06271eff03fbf9f48 100644 --- a/src/sbbs3/scfg/GNUmakefile +++ b/src/sbbs3/scfg/GNUmakefile @@ -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)