]> git.sesse.net Git - stockfish/blobdiff - src/Makefile
Explicitly rely on pthreads if possible
[stockfish] / src / Makefile
index b969ba0466599ec7f10f8682b43c3096e8dfb2e4..74ef87b94ed0da554e6a152a878daab1ec697014 100644 (file)
@@ -417,6 +417,7 @@ endif
 
 ### On mingw use Windows threads, otherwise POSIX
 ifneq ($(comp),mingw)
+       CXXFLAGS += -DUSE_PTHREADS
        # On Android Bionic's C library comes with its own pthread implementation bundled in
        ifneq ($(OS),Android)
                # Haiku has pthreads in its libroot, so only link it in on other platforms