From 79a09193a187d38381b72728f7db99bcaae3d166 Mon Sep 17 00:00:00 2001 From: David Griffith Date: Tue, 3 Sep 2019 23:56:52 -0700 Subject: [PATCH] Add some tweaks for FreeBSD; no sound curses interface. --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 236330d..97279d1 100644 --- a/Makefile +++ b/Makefile @@ -2,8 +2,8 @@ # GNU make is required. # Your C compiler -CC=gcc -#CC=clang +CC ?= gcc +#CC ?= clang # Your DOS C Compiler (Watcom) WCC=wcc @@ -25,6 +25,9 @@ ifneq ($(OS),Windows_NT) CURSES_CFLAGS += -I/usr/pkg/include/ncurses -I/usr/pkg/include/ncursesw SDL_LDFLAGS += -lexecinfo endif + ifeq ($(UNAME_S),FreeBSD) + FREEBSD = yes + endif ifeq ($(UNAME_S),Linux) NPROCS = $(shell grep -c ^processor /proc/cpuinfo) endif @@ -309,6 +312,9 @@ endif ifeq ($(USE_UTF8), yes) @echo "#define USE_UTF8" >> $@ endif +ifdef FREEBSD + @echo "#define __BSD_VISIBLE 1" >> $@ +endif ifdef MACOS @echo "#define _DARWIN_C_SOURCE" >> $@ @echo "#define _XOPEN_SOURCE 600" >> $@ -- 2.34.1