egl-wayland: fix build

Add headers that got moved in #72999
This commit is contained in:
Fabian Möller 2019-11-27 12:36:59 +01:00
parent 3f86f21207
commit 46e98a907e
No known key found for this signature in database
GPG key ID: 70B29D65DD8A7E31
2 changed files with 18 additions and 0 deletions

View file

@ -6,6 +6,7 @@
, ninja
, libX11
, mesa
, libGL
, wayland
}:
@ -50,6 +51,10 @@ in stdenv.mkDerivation rec {
sha256 = "0wvamjcfycd7rgk7v14g2rin55xin9rfkxmivyay3cm08vnl7y1d";
};
# Add missing include
# https://github.com/NVIDIA/egl-wayland/pull/24
patches = [ ./eglmesaext.patch ];
nativeBuildInputs = [
meson
ninja
@ -60,6 +65,7 @@ in stdenv.mkDerivation rec {
eglexternalplatform
libX11
mesa
libGL
wayland
];

View file

@ -0,0 +1,12 @@
diff --git a/src/wayland-eglsurface.c b/src/wayland-eglsurface.c
index 01c9cb3..45736b0 100644
--- a/src/wayland-eglsurface.c
+++ b/src/wayland-eglsurface.c
@@ -37,6 +37,7 @@
#include <sys/types.h>
#include <netinet/in.h>
#include <fcntl.h>
+#include <EGL/eglmesaext.h>
#define WL_EGL_WINDOW_DESTROY_CALLBACK_SINCE 3