From b392d57042c8ad6dbc34f18509fa9e1c90907eff Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Mon, 16 Jan 2023 08:38:03 -0800 Subject: [PATCH] util/xmlconfig: Use os_get_option() Enable the property_get() fallback on android. Signed-off-by: Rob Clark Part-of: --- src/util/xmlconfig.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/xmlconfig.c b/src/util/xmlconfig.c index 25f90d41786..b2c568fe4ff 100644 --- a/src/util/xmlconfig.c +++ b/src/util/xmlconfig.c @@ -59,6 +59,7 @@ static inline void regfree(regex_t* r) {} #include "strndup.h" #include "u_process.h" #include "os_file.h" +#include "os_misc.h" /* For systems like Hurd */ #ifndef PATH_MAX @@ -382,7 +383,7 @@ driParseOptionInfo(driOptionCache *info, /* Built-in default values should always be valid. */ assert(checkValue(optval, optinfo)); - char *envVal = getenv(name); + const char *envVal = os_get_option(name); if (envVal != NULL) { driOptionValue v;