aboutsummaryrefslogtreecommitdiffstats
path: root/src/egl
diff options
context:
space:
mode:
authorAlexander von Gluck IV <[email protected]>2015-08-07 12:55:40 -0500
committerAlexander von Gluck IV <[email protected]>2015-08-07 14:31:25 -0500
commitba651967a201b48f380cd30495e271317c1d8522 (patch)
treecbd86224a54915540055948c8ecdc1f37d57a432 /src/egl
parent6de9a03bed400fca5672ef0c13c0039bbe94a679 (diff)
egl/dri2: Fix include path of u_atomic.h introduced e7e29189
This was causing a failure to build on SCons due to a missing -Isrc/egl. Instead of adding in that path, lets just -Isrc/ and include "utils/u_atomic.h". Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/egl')
-rw-r--r--src/egl/Makefile.am1
-rw-r--r--src/egl/SConscript1
-rw-r--r--src/egl/drivers/dri2/egl_dri2.c2
3 files changed, 3 insertions, 1 deletions
diff --git a/src/egl/Makefile.am b/src/egl/Makefile.am
index be7bfe9c3ab..5c2ba301ffb 100644
--- a/src/egl/Makefile.am
+++ b/src/egl/Makefile.am
@@ -25,6 +25,7 @@ AM_CFLAGS = \
-I$(top_srcdir)/include \
-I$(top_srcdir)/src/egl/main \
-I$(top_srcdir)/src/gbm/main \
+ -I$(top_srcdir)/src \
$(DEFINES) \
$(VISIBILITY_CFLAGS) \
$(LIBDRM_CFLAGS) \
diff --git a/src/egl/SConscript b/src/egl/SConscript
index a7f62824e14..1b2a4271ef7 100644
--- a/src/egl/SConscript
+++ b/src/egl/SConscript
@@ -9,6 +9,7 @@ env = env.Clone()
env.Append(CPPPATH = [
'#/include',
'#/src/egl/main',
+ '#/src',
])
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
index 0290c077ef6..461735fe9e3 100644
--- a/src/egl/drivers/dri2/egl_dri2.c
+++ b/src/egl/drivers/dri2/egl_dri2.c
@@ -52,7 +52,7 @@
#endif
#include "egl_dri2.h"
-#include "../util/u_atomic.h"
+#include "util/u_atomic.h"
/* The kernel header drm_fourcc.h defines the DRM formats below. We duplicate
* some of the definitions here so that building Mesa won't bleeding-edge