mesa/mesa-19.2.3-arm32-buildfix.patch
2020-06-27 15:21:08 +03:00

21 lines
712 B
Diff

diff -up mesa-19.2.2/src/drm-shim/drm_shim.c.omv~ mesa-19.2.2/src/drm-shim/drm_shim.c
--- mesa-19.2.2/src/drm-shim/drm_shim.c.omv~ 2019-11-08 12:22:33.561413124 +0000
+++ mesa-19.2.2/src/drm-shim/drm_shim.c 2019-11-08 13:18:33.752306260 +0000
@@ -38,7 +38,7 @@
#include <string.h>
#include <unistd.h>
#include <sys/ioctl.h>
-#include <sys/mman.h>
+//#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/sysmacros.h>
#include <stdarg.h>
@@ -52,6 +52,8 @@
#include "util/u_debug.h"
#include "drm_shim.h"
+PUBLIC void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset);
+
#define REAL_FUNCTION_POINTER(x) typeof(x) *real_##x
static mtx_t shim_lock = _MTX_INITIALIZER_NP;