From 60aea3011525de8bf6506e08c913cbe24cc17767 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Tue, 1 Sep 2015 16:29:17 -0600 Subject: [PATCH] auxiliary/os: Don't implement os_get_option() on embedded builds. Let it be defined externally instead, allowing setting mechanisms other than environment variables. Reviewed-by: Zack Rusin Reviewed-by: Matthew McClure --- src/gallium/auxiliary/os/os_misc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/auxiliary/os/os_misc.c b/src/gallium/auxiliary/os/os_misc.c index c46078b..d6b83e9 100644 --- a/src/gallium/auxiliary/os/os_misc.c +++ b/src/gallium/auxiliary/os/os_misc.c @@ -96,11 +96,13 @@ os_log_message(const char *message) } +#if !defined(PIPE_SUBSYSTEM_EMBEDDED) const char * os_get_option(const char *name) { return getenv(name); } +#endif /* !PIPE_SUBSYSTEM_EMBEDDED */ /** -- 2.7.4