From 13da404446f897fcdbbf4f19230a684e7936708c Mon Sep 17 00:00:00 2001 From: Manoj Srivastava Date: Fri, 5 Jun 2020 18:52:03 -0700 Subject: [PATCH] fix(includedir) Fix ordering if include dirs There has been a long standind bug where INCLUDE_DIRS /usr/include is included twice. The more important problem is it is before the /usr/local/include. This commit fixes the ordering. Signed-off-by: Manoj Srivastava --- src/read.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/read.c b/src/read.c index fa197fb8..11389f38 100644 --- a/src/read.c +++ b/src/read.c @@ -107,11 +107,13 @@ static const char *default_include_directories[] = This is defined as a placeholder. */ # define INCLUDEDIR "." #endif - INCLUDEDIR, #ifndef _AMIGA "/usr/gnu/include", "/usr/local/include", "/usr/include", + INCLUDEDIR, +#else + INCLUDEDIR, #endif 0 };