[Mesa-dev] [PATCH 14/14] auxiliary/os: Don't implement os_get_option() on embedded builds.

Brian Paul brianp at vmware.com
Fri Aug 28 14:31:33 PDT 2015


From: José Fonseca <jfonseca at vmware.com>

Let it be defined externally instead, allowing setting mechanisms other
than environment variables.

Reviewed-by: Zack Rusin <zackr at vmware.com>
Reviewed-by: Matthew McClure <mcclurem at vmware.com>
---
 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 */
 
 
 /**
-- 
1.9.1



More information about the mesa-dev mailing list