From b8978639e8a55d73c58028b1dce5bbc1b913ab92 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sat, 19 May 2018 12:25:09 -0700 Subject: [PATCH] makefile: Add test for semaphore.h --- makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/makefile b/makefile index e3fbf5b5..cc052368 100644 --- a/makefile +++ b/makefile @@ -492,6 +492,9 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin) OS_CURSES_DEFS += -DHAVE_NCURSES -lncurses endif endif + ifneq (,$(call find_include,semaphore)) + OS_CCDEFS += -DHAVE_SEMAPHORE + endif ifneq (,$(call find_include,dlfcn)) ifneq (,$(call find_lib,dl)) OS_CCDEFS += -DHAVE_DLOPEN=$(LIBEXT)