dri: Add GET_PROGRAM_NAME definition for Mac OS X.
authorVinson Lee <vlee@vmware.com>
Tue, 28 Sep 2010 07:27:31 +0000 (00:27 -0700)
committerVinson Lee <vlee@vmware.com>
Tue, 28 Sep 2010 07:27:31 +0000 (00:27 -0700)
src/mesa/drivers/dri/common/xmlconfig.c

index bde6b23c7cff1995d54782f011599d7d6aeb2222..0312c072437af37c77510c25b73b27bad4f81c3e 100644 (file)
@@ -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() */