projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3e95dc
)
dri: Add GET_PROGRAM_NAME definition for Mac OS X.
author
Vinson Lee
<vlee@vmware.com>
Tue, 28 Sep 2010 07:27:31 +0000
(
00:27
-0700)
committer
Vinson Lee
<vlee@vmware.com>
Tue, 28 Sep 2010 07:27:31 +0000
(
00:27
-0700)
src/mesa/drivers/dri/common/xmlconfig.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/common/xmlconfig.c
b/src/mesa/drivers/dri/common/xmlconfig.c
index bde6b23c7cff1995d54782f011599d7d6aeb2222..0312c072437af37c77510c25b73b27bad4f81c3e 100644
(file)
--- 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() */