[Mesa-dev] [PATCH mesa 1/2] egl: add missing includes

Kristian Høgsberg hoegsberg at gmail.com
Wed Nov 21 20:51:24 UTC 2018


On Fri, Nov 16, 2018 at 9:34 AM Emil Velikov <emil.l.velikov at gmail.com> wrote:
>
> On Fri, 16 Nov 2018 at 10:07, Eric Engestrom <eric.engestrom at intel.com> wrote:

I find that I also need

diff --git a/src/egl/main/egldevice.h b/src/egl/main/egldevice.h
index ddcdcd17f5a..03988913ecd 100644
--- a/src/egl/main/egldevice.h
+++ b/src/egl/main/egldevice.h
@@ -30,6 +30,7 @@
 #define EGLDEVICE_INCLUDED


+#include <stdlib.h>
 #include <stdbool.h>
 #include "egltypedefs.h"

for the use of NULL in the inline _eglLookupDevice further down.

Kristian

> >
> > Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
> > ---
> >  src/egl/drivers/dri2/egl_dri2.c | 1 +
> >  src/egl/main/eglapi.c           | 2 ++
> >  src/egl/main/eglapi.h           | 1 +
> >  src/egl/main/eglglobals.c       | 2 ++
> >  src/egl/main/eglsurface.c       | 2 ++
> >  5 files changed, 8 insertions(+)
> >
>
> I haven't explicitly checked each include but I know you're build
> tested this. For the lot
> Acked-by: Emil Velikov <emil.velikov at collabora.com>
>
> -Emil
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list