auxiliary/os: Don't implement os_get_option() on embedded builds.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 1 Sep 2015 22:29:17 +0000 (16:29 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 1 Sep 2015 22:29:17 +0000 (16:29 -0600)
Let it be defined externally instead, allowing setting mechanisms other
than environment variables.

Reviewed-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Matthew McClure <mcclurem@vmware.com>
src/gallium/auxiliary/os/os_misc.c

index c46078bb07dfc4ad23632ec6d4160961b6f8c7da..d6b83e90e3ddddb028d2eef94d65294dd46a7c7e 100644 (file)
@@ -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 */
 
 
 /**