ref: 23055c1252032c2c0831b62296649deddd1cc504
parent: dcebf4bb57a40b5ae0eb01dde386f33830ee0d2c
author: zamfofex <zamfofex@twdb.moe>
date: Sat Dec 23 23:00:50 EST 2023
fix build
--- a/README.md
+++ b/README.md
@@ -57,7 +57,7 @@
Conversely, you may also invoke your compiler by hand. (Feel free to replace `cc` with your compiler of choice.)
~~~
-cc -ansi -O3 -pthread -o moonfish chess.c search.c main.c
+cc -ansi -O3 -pthread -D_POSIX_C_SOURCE=199309L -o moonfish chess.c search.c main.c
~~~
The two UCI TUIs, called “play” and “analyse”, may also be compiled.
--- a/makefile
+++ b/makefile
@@ -9,7 +9,7 @@
src := chess.c search.c main.c
-moonfish_cc := $(cc) -pthread
+moonfish_cc := $(cc) -pthread -D_POSIX_C_SOURCE=199309L
tools_cc := $(cc) -pthread -D_POSIX_C_SOURCE=200809L
.PHONY: all clean install
--
⑨