This change adds the _DARWIN_C_SOURCE define to macOS debug and release builds. Without this some symbols aren't defined when including standard headers.
---
makefile | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/makefile b/makefile
index 6c4a6dc..eed3c18 100644
--- a/makefile
+++ b/makefile
@@ -5,6 +5,11 @@ DEBUG_flags=-std=c89 -DDEBUG -Wall -Wno-unknown-pragmas -Wpedantic -Wshadow -Wex
ASM=bin/uxnasm
CLI=bin/uxncli
+ifeq ($(shell uname), Darwin)
+ RELEASE_flags += -D_DARWIN_C_SOURCE
+ DEBUG_flags += -D_DARWIN_C_SOURCE
+endif
+
.PHONY: all dest run lint install uninstall format clean
all: bin/uxnasm bin/uxncli bin/porporo
--
2.43.0
This patch is for porporo. Sorry I forgot to add it in; still getting used to the workflow.