Merge pull request #558 from gameblabla/cdrom_fixes_libretro_popo
[pcsx_rearmed.git] / Makefile.libretro
index ac91cf8..1ecd359 100644 (file)
@@ -3,6 +3,7 @@
 DEBUG ?= 0
 WANT_ZLIB ?= 1
 HAVE_CHD ?= 1
+USE_LIBRETRO_VFS ?= 0
 
 # Dynarec options: lightrec, ari64
 DYNAREC ?= lightrec
@@ -252,6 +253,7 @@ else ifeq ($(platform), ctr)
        CFLAGS += -fomit-frame-pointer -ffast-math -funroll-loops
        CFLAGS += -Ifrontend/3ds -I$(CTRULIB)/include
        CFLAGS += -Werror=implicit-function-declaration
+       CFLAGS += -DHAVE_UNISTD_H
 
        OBJS += frontend/3ds/utils.o
 
@@ -450,6 +452,7 @@ else
        LIBPTHREAD :=
        LIBDL :=
        LIBM :=
+       USE_LIBRETRO_VFS = 1
 endif
 
 CFLAGS += $(fpic)