libretro: don't build mremap for Switch on Linux.

This commit is contained in:
Lubosz Sarnecki 2018-01-22 00:25:30 +01:00
parent e671a87bc9
commit 471be6a92f

View File

@ -395,7 +395,7 @@ void *plat_mmap(unsigned long addr, size_t size, int need_exec, int is_fixed)
void *plat_mremap(void *ptr, size_t oldsize, size_t newsize)
{
#ifdef __linux__
#if defined(__linux__) && !defined(__SWITCH__)
void *ret = mremap(ptr, oldsize, newsize, 0);
if (ret == MAP_FAILED)
return NULL;