util/xmlconfig: Use os_get_option()

Enable the property_get() fallback on android.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20708>
This commit is contained in:
Rob Clark 2023-01-16 08:38:03 -08:00 committed by Marge Bot
parent 720c842c50
commit b392d57042

View file

@ -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;