Support compiling without posix_memalign() function
[pcsx_rearmed.git] / Makefile
index 6e9d10c..3d33b8c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,8 @@ ifndef DEBUG
 CFLAGS += -O2 -DNDEBUG
 endif
 CFLAGS += -DHAVE_MMAP=$(if $(NO_MMAP),0,1) \
-         -DHAVE_PTHREAD=$(if $(NO_PTHREAD),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