~rabbits/public-inbox

Fix macOS builds v1 APPROVED

Jason Morley: 1
 Fix macOS builds

 1 files changed, 5 insertions(+), 0 deletions(-)
Thanks for the patch :) Merged.
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~rabbits/public-inbox/patches/48220/mbox | git am -3
Learn more about email & git

[PATCH] Fix macOS builds Export this patch

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.