shithub: orca

Download patch

ref: 68beaa1129aa7bff3315c1da9536853aa2867e89
parent: 8b9a95f9a22d820ce7a71646f8e9ea24096e7a64
author: cancel <cancel@cancel.fm>
date: Sat Nov 24 23:56:15 EST 2018

Detect Darwin for use of ncurses instead of ncursesw

--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,11 @@
 sanitize_flags := -fsanitize=address -fsanitize=undefined
 # note: -fsanitize=leak not available on at least Mac 10.12
 release_flags := -DNDEBUG -O2 -s -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fpie -Wl,-pie
+ifeq ($(shell uname -s), Darwin)
+library_flags := -lncurses
+else
 library_flags := -lncursesw
+endif
 source_files := field.c main.c
 
 all: debug