From: Vinson Lee Date: Tue, 28 Sep 2010 07:27:31 +0000 (-0700) Subject: dri: Add GET_PROGRAM_NAME definition for Mac OS X. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=79d56577700a4f4b8628b3b61098763d019f17d4;p=mesa.git dri: Add GET_PROGRAM_NAME definition for Mac OS X. --- 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 # define GET_PROGRAM_NAME() getprogname() +#elif defined(__APPLE__) +# include +# define GET_PROGRAM_NAME() getprogname() #elif defined(__sun) /* Solaris has getexecname() which returns the full path - return just the basename to match BSD getprogname() */