Support compiling without posix_memalign() function
[pcsx_rearmed.git] / Makefile
index 779f67a..c95f422 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,9 @@ else
 CFLAGS += -O2 -DNDEBUG
 endif
 endif
-CFLAGS += -DHAVE_MMAP=$(if $(NO_MMAP),0,1)
+CFLAGS += -DHAVE_MMAP=$(if $(NO_MMAP),0,1) \
+         -DHAVE_PTHREAD=$(if $(NO_PTHREAD),0,1) \
+         -DHAVE_POSIX_MEMALIGN=$(if $(NO_POSIX_MEMALIGN),0,1)
 CXXFLAGS += $(CFLAGS)
 #DRC_DBG = 1
 #PCNT = 1