try to fix apple build
authornotaz <notasas@gmail.com>
Sun, 6 Aug 2023 18:24:58 +0000 (21:24 +0300)
committernotaz <notasas@gmail.com>
Sun, 6 Aug 2023 18:24:58 +0000 (21:24 +0300)
Makefile

index dac70e3..2f58674 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -80,6 +80,7 @@ OBJS += deps/libchdr/deps/zlib-1.2.13/adler32.o \
         deps/libchdr/deps/zlib-1.2.13/trees.o \
         deps/libchdr/deps/zlib-1.2.13/uncompr.o \
         deps/libchdr/deps/zlib-1.2.13/zutil.o
+deps/libchdr/deps/zlib-1.2.13/%.o: CFLAGS += -DHAVE_UNISTD_H
 endif
 ifeq "$(ARCH)" "arm"
 OBJS += libpcsxcore/gte_arm.o