[Mesa-dev] [PATCH mesa] egl/android: fix include path

Eric Engestrom eric.engestrom at imgtec.com
Fri Aug 25 10:47:09 UTC 2017


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 <cwhuang at android-x86.org>
Cc: Rob Herring <robh at kernel.org>
Signed-off-by: Eric Engestrom <eric.engestrom at 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



More information about the mesa-dev mailing list