File kbd-ignore-working-directory-3.patch of Package kbd.38485
From 8b7f70904343153b658b8640ba14fc7d583cdc57 Mon Sep 17 00:00:00 2001
From: Daan De Meyer <daan.j.demeyer@gmail.com>
Date: Sat, 9 Dec 2023 14:47:56 +0100
Subject: [PATCH 3/3] Do not look up include files in the current working directory
Fixes the same issue as a770f39f79e6a5fdf8f352d8b26d6a50c6b137ff
but for include files.
Link: #101
Signed-off-by: Daan De Meyer <daan.j.demeyer@gmail.com>
---
src/libkeymap/analyze.l | 1 -
1 file changed, 1 deletion(-)
Index: kbd-2.0.4/src/libkeymap/analyze.l
===================================================================
--- kbd-2.0.4.orig/src/libkeymap/analyze.l
+++ kbd-2.0.4/src/libkeymap/analyze.l
@@ -99,7 +99,7 @@ stack_pop(struct lk_ctx *ctx, void *scan
* lookups are required.
*/
static const char *const include_dirpath0[] = { "", 0 };
-static const char *const include_dirpath1[] = { "", "../include/", "../../include/", 0 };
+static const char *const include_dirpath1[] = { "../include/", "../../include/", 0 };
static const char *const include_dirpath3[] = {
DATADIR "/" KEYMAPDIR "/include/",
DATADIR "/" KEYMAPDIR "/i386/include/",