diff options
author | Alan Coopersmith <[email protected]> | 2008-06-20 17:58:53 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-06-21 10:19:45 -0600 |
commit | e1f9adc27445ea3381af1f71cfec0317298be5b1 (patch) | |
tree | 6a150eaf2acbe07729d341c7ee8268ca7c4542fd /src/mesa/drivers/dri/common/xmlconfig.c | |
parent | f30e4af73405aad3ec29b7337a3a0177e3fbe715 (diff) |
Solaris port of Mesa 7.1 with autoconf support
Signed-off-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/common/xmlconfig.c')
-rw-r--r-- | src/mesa/drivers/dri/common/xmlconfig.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/xmlconfig.c b/src/mesa/drivers/dri/common/xmlconfig.c index 8602d47cf97..f6ae75520c5 100644 --- a/src/mesa/drivers/dri/common/xmlconfig.c +++ b/src/mesa/drivers/dri/common/xmlconfig.c @@ -63,6 +63,12 @@ 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(__sun) +/* Solaris has getexecname() which returns the full path - return just + the basename to match BSD getprogname() */ +# include <stdlib.h> +# include <libgen.h> +# define GET_PROGRAM_NAME() basename(getexecname()) #endif #if !defined(GET_PROGRAM_NAME) |