The include I added in 688d866eca isn't actually useful, as it only
declares the opaque struct ANativeWindow. <system/window.h> provides the
contents of the struct, which is what is needed by platform_android.

Fixes: 688d866eca8943f09cd8 "egl/android: add missing include"
Cc: Chih-Wei Huang <cwhu...@android-x86.org>
Cc: Rob Herring <r...@kernel.org>
Signed-off-by: Eric Engestrom <eric.engest...@imgtec.com>
---

Chih-Wei, does this compile correctly?
---
 src/egl/drivers/dri2/platform_android.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/egl/drivers/dri2/platform_android.c 
b/src/egl/drivers/dri2/platform_android.c
index 36fc5833b4..3dc544f58e 100644
--- a/src/egl/drivers/dri2/platform_android.c
+++ b/src/egl/drivers/dri2/platform_android.c
@@ -27,13 +27,13 @@
  * DEALINGS IN THE SOFTWARE.
  */
 
-#include <android/native_window.h>
 #include <errno.h>
 #include <dlfcn.h>
 #include <fcntl.h>
 #include <xf86drm.h>
 #include <stdbool.h>
 #include <sync/sync.h>
+#include <system/window.h>
 
 #include "loader.h"
 #include "egl_dri2.h"
-- 
Cheers,
  Eric

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to