Skip to content

Instantly share code, notes, and snippets.

@Ismael-VC
Created April 15, 2023 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ismael-VC/4233d1c8dbbc1e1762f3874a822a1f2d to your computer and use it in GitHub Desktop.
Save Ismael-VC/4233d1c8dbbc1e1762f3874a822a1f2d to your computer and use it in GitHub Desktop.
diff --git a/build.sh b/build.sh
index 28682b5..88076e8 100755
--- a/build.sh
+++ b/build.sh
@@ -67,7 +67,7 @@ fi
mkdir -p bin
CC="${CC:-cc}"
-CFLAGS="${CFLAGS:--std=c89 -Wall -Wno-unknown-pragmas}"
+CFLAGS="${CFLAGS:--std=c89 -Wall -Wno-unknown-pragmas -D_DARWIN_C_SOURCE}"
case "$(uname -s 2>/dev/null)" in
MSYS_NT*|MINGW*) # MSYS2 on Windows
FILE_LDFLAGS="-liberty"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment