shithub: moonfish

Download patch

ref: 9c7974a7d689c384de10d51838793970734883f8
parent: 9f1006a64b0b1617aa360837c28fdba9077e1852
author: zamfofex <zamfofex@twdb.moe>
date: Wed Nov 15 18:11:32 EST 2023

add POSIX feature detection macro to makefile

--- a/makefile
+++ b/makefile
@@ -15,7 +15,7 @@
 all: moonfish play lichess analyse
 
 ifneq ($(has_pthread),no)
-moonfish_cc += -DMOONFISH_HAS_PTHREAD -pthread
+moonfish_cc += -D_POSIX_C_SOURCE=199309L -DMOONFISH_HAS_PTHREAD -pthread
 endif
 
 moonfish moonfish.exe: moonfish.h $(src)
--