Load platform-specific configuration in SYSCONFDIR
This commit is contained in:
parent
fa81e2b8b9
commit
ba3e1e9f81
@ -262,6 +262,13 @@ static int _new_load_config(Configure * configure)
|
|||||||
/* we can ignore errors */
|
/* we can ignore errors */
|
||||||
config_load(configure->config, filename);
|
config_load(configure->config, filename);
|
||||||
string_delete(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
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user