Commit 4e5839a5f4a09afd046b3ea4c16f0d4d542a8e28

Sam Lantinga 2021-11-26T13:45:08

Fixed compiling for Raspberry Pi

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/video/SDL_egl.c b/src/video/SDL_egl.c
index f9cdcda..0ca0053 100644
--- a/src/video/SDL_egl.c
+++ b/src/video/SDL_egl.c
@@ -30,6 +30,9 @@
 #include "../core/android/SDL_android.h"
 #include "../video/android/SDL_androidvideo.h"
 #endif
+#if SDL_VIDEO_DRIVER_RPI
+#include <unistd.h>
+#endif
 
 #include "SDL_sysvideo.h"
 #include "SDL_egl_c.h"