biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / security / dumpasn1 / configpath.patch
blob4578faafc350eff326443cc1f4a2251becdc78bc
1 From ab8bd63b32b963ddc7346a2dabfd39fba8bfba72 Mon Sep 17 00:00:00 2001
2 From: Paul Meyer <49727155+katexochen@users.noreply.github.com>
3 Date: Sun, 13 Aug 2023 14:13:21 +0200
4 Subject: [PATCH] make config path injectable during build
6 This way a config path can be added to the list during build by
7 defining the makro.
9 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
10 ---
11 dumpasn1.c | 4 ++++
12 1 file changed, 4 insertions(+)
14 diff --git a/dumpasn1.c b/dumpasn1.c
15 index e7bf268..94f1582 100644
16 --- a/dumpasn1.c
17 +++ b/dumpasn1.c
18 @@ -451,6 +451,10 @@ static const char *configPaths[] = {
19 /* General environment-based paths */
20 "$DUMPASN1_PATH/",
22 + #ifdef DUMPASN1_CONFIG_PATH
23 + DUMPASN1_CONFIG_PATH,
24 + #endif /* DUMPASN1_CONFIG_PATH */
26 NULL
28 #endif /* OS-specific search paths */