Mesa (8.0): xmlconfig: use __progname when building for Android

Chad Versace chadversary at kemper.freedesktop.org
Fri Aug 31 16:56:29 UTC 2012


Module: Mesa
Branch: 8.0
Commit: 61badd46ba3d34cf65fdd81bca6e89623c9361a0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=61badd46ba3d34cf65fdd81bca6e89623c9361a0

Author: Tapani Pälli <tapani.palli at intel.com>
Date:   Tue Jun  5 16:04:14 2012 +0300

xmlconfig: use __progname when building for Android

__progname symbol and strrchr are available with bionic.

Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
Signed-off-by: Chad Versace <chad.versace at linux.intel.com>
(cherry picked from commit 4d02b018f456c447e2c24ebd1460c27d6e5fb385)

---

 src/mesa/drivers/dri/common/xmlconfig.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/common/xmlconfig.c b/src/mesa/drivers/dri/common/xmlconfig.c
index 6d1d5ec..039e98a 100644
--- a/src/mesa/drivers/dri/common/xmlconfig.c
+++ b/src/mesa/drivers/dri/common/xmlconfig.c
@@ -86,7 +86,7 @@ static const char *__getProgramName () {
 #endif
 
 #if !defined(GET_PROGRAM_NAME)
-#    if defined(__OpenBSD__) || defined(NetBSD) || defined(__UCLIBC__)
+#    if defined(__OpenBSD__) || defined(NetBSD) || defined(__UCLIBC__) || defined(ANDROID)
 /* This is a hack. It's said to work on OpenBSD, NetBSD and GNU.
  * Rogelio M.Serrano Jr. reported it's also working with UCLIBC. It's
  * used as a last resort, if there is no documented facility available. */




More information about the mesa-commit mailing list