Mesa (master): dri: Add GET_PROGRAM_NAME definition for Mac OS X.

Vinson Lee vlee at kemper.freedesktop.org
Tue Sep 28 07:28:17 UTC 2010


Module: Mesa
Branch: master
Commit: 79d56577700a4f4b8628b3b61098763d019f17d4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=79d56577700a4f4b8628b3b61098763d019f17d4

Author: Vinson Lee <vlee at vmware.com>
Date:   Tue Sep 28 00:27:31 2010 -0700

dri: Add GET_PROGRAM_NAME definition for Mac OS X.

---

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

diff --git a/src/mesa/drivers/dri/common/xmlconfig.c b/src/mesa/drivers/dri/common/xmlconfig.c
index bde6b23..0312c07 100644
--- a/src/mesa/drivers/dri/common/xmlconfig.c
+++ b/src/mesa/drivers/dri/common/xmlconfig.c
@@ -56,6 +56,9 @@ extern char *program_invocation_name, *program_invocation_short_name;
 #elif defined(__NetBSD__) && defined(__NetBSD_Version) && (__NetBSD_Version >= 106000100)
 #    include <stdlib.h>
 #    define GET_PROGRAM_NAME() getprogname()
+#elif defined(__APPLE__)
+#    include <stdlib.h>
+#    define GET_PROGRAM_NAME() getprogname()
 #elif defined(__sun)
 /* Solaris has getexecname() which returns the full path - return just
    the basename to match BSD getprogname() */




More information about the mesa-commit mailing list