aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore/psxmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpcsxcore/psxmem.c')
-rw-r--r--libpcsxcore/psxmem.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libpcsxcore/psxmem.c b/libpcsxcore/psxmem.c
index 7001744..259128d 100644
--- a/libpcsxcore/psxmem.c
+++ b/libpcsxcore/psxmem.c
@@ -28,7 +28,12 @@
#include "r3000a.h"
#include "psxhw.h"
#include "debug.h"
+
+#ifdef __LIBRETRO__
+#include "memmap.h"
+#else
#include <sys/mman.h>
+#endif
#ifndef MAP_ANONYMOUS
#define MAP_ANONYMOUS MAP_ANON