From: José Fonseca Date: Tue, 1 Sep 2015 22:29:17 +0000 (-0600) Subject: auxiliary/os: Don't implement os_get_option() on embedded builds. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=60aea3011525de8bf6506e08c913cbe24cc17767;p=mesa.git 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 --- diff --git a/src/gallium/auxiliary/os/os_misc.c b/src/gallium/auxiliary/os/os_misc.c index c46078bb07d..d6b83e90e3d 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 */ /**