Commit 5e3cf0d1f4a18a7918283626fef8e5252ae45b4a

Sylvain Becker 2021-01-27T09:34:23

SDL_SoftStretch: disable asm path if mprotect isn't available (see bug #3816)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/video/SDL_stretch.c b/src/video/SDL_stretch.c
index 1c99766..1d3610d 100644
--- a/src/video/SDL_stretch.c
+++ b/src/video/SDL_stretch.c
@@ -46,6 +46,10 @@
 #      undef USE_ASM_STRETCH
 #    endif
 #  endif
+/* But it doesn't work if mprotect isn't available */
+#  if !defined(HAVE_MPROTECT) && defined(USE_ASM_STRETCH)
+#    undef USE_ASM_STRETCH
+#  endif
 #endif
 
 #ifdef USE_ASM_STRETCH