summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/common/xmlconfig.c
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-09-28 00:27:31 -0700
committerVinson Lee <[email protected]>2010-09-28 00:27:31 -0700
commit79d56577700a4f4b8628b3b61098763d019f17d4 (patch)
tree2b96065c2177bc86b8864be706f343778eb9cac9 /src/mesa/drivers/dri/common/xmlconfig.c
parentb3e95dc45ce0cef5a1b17324a02f18f40a506ca8 (diff)
dri: Add GET_PROGRAM_NAME definition for Mac OS X.
Diffstat (limited to 'src/mesa/drivers/dri/common/xmlconfig.c')
-rw-r--r--src/mesa/drivers/dri/common/xmlconfig.c3
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 bde6b23c7cf..0312c072437 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() */