ref: 10eda615542dc0e9c419ee91fecebb51d0c42202
parent: 335e6d7f394a7d73a6fdf6f75786559aa9e88da9
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Tue Mar 11 23:17:01 EDT 2025
posix: macosx: define _DARWIN_C_SOURCE
--- a/src/posix/platform.h
+++ b/src/posix/platform.h
@@ -4,6 +4,7 @@
#include <assert.h>
#include <ctype.h>
#if defined(__APPLE__)
+#define _DARWIN_C_SOURCE 1
#include <machine/endian.h>
#else
#include <endian.h>