From ba3e1e9f81564c6a804468a3f642bc4c63c1734c Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 18 Nov 2017 04:37:39 +0100 Subject: [PATCH] Load platform-specific configuration in SYSCONFDIR --- src/configure.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/configure.c b/src/configure.c index 2e7ba83..b9474d6 100644 --- a/src/configure.c +++ b/src/configure.c @@ -262,6 +262,13 @@ static int _new_load_config(Configure * configure) /* we can ignore errors */ config_load(configure->config, filename); string_delete(filename); + if((filename = string_new_append(SYSCONFDIR "/" PACKAGE "/platform/", + sHostOS[configure->os], CONFEXT, NULL)) + == NULL) + return -configure_error(1, "%s", error_get(NULL)); + /* we can ignore errors */ + config_load(configure->config, filename); + string_delete(filename); #endif return 0; }