From 1b1bb6ee103a79de11aa4941ccbcd34f0a158276 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 4 Oct 2017 15:33:18 -0700 Subject: [PATCH] make: Don't traverse backwards through include directories. Traversing back through includes is bad idea and should be avoided. In the case here - indirect_size.h is located in the build directory $(top_builddir)/src/glx/. v3: - Update commit message with message provided by Emil Signed-off-by: Dylan Baker Reviewed-by: Emil Velikov Reviewed-by: Eric Anholt --- src/glx/tests/Makefile.am | 1 + src/glx/tests/enum_sizes.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/glx/tests/Makefile.am b/src/glx/tests/Makefile.am index a41759b863e..aab93e732a3 100644 --- a/src/glx/tests/Makefile.am +++ b/src/glx/tests/Makefile.am @@ -5,6 +5,7 @@ AM_CPPFLAGS = \ -I$(top_srcdir)/src \ -I$(top_srcdir)/src/mapi \ -I$(top_srcdir)/src/mesa \ + -I$(top_builddir)/src/glx \ -I$(top_srcdir)/src/glx \ -I$(top_srcdir)/include \ -I$(top_srcdir)/include/GL/internal \ diff --git a/src/glx/tests/enum_sizes.cpp b/src/glx/tests/enum_sizes.cpp index 20fc75879c0..6119dcbc43a 100644 --- a/src/glx/tests/enum_sizes.cpp +++ b/src/glx/tests/enum_sizes.cpp @@ -36,7 +36,7 @@ #include #include extern "C" { -#include "../indirect_size.h" +#include "indirect_size.h" } TEST(ValidEnumSizes, CallLists) -- 2.30.2