From: Mihai Moldovan Date: Tue, 29 May 2012 07:21:54 +0000 (+0200) Subject: core-util: use the generic PATH_MAX variant of pa_realpath on Mac OS X X-Git-Url: https://code.delx.au/pulseaudio/commitdiff_plain/56ce2c67c2f6be565e7292fc3676d57d2ac39504 core-util: use the generic PATH_MAX variant of pa_realpath on Mac OS X realpath() on OS X behaves GNUish and accepts NULL for resolved_name only on 10.6 and higher. Older versions will crash, if resolved_name is NULL. All versions define PATH_MAX, though. Better play it safe and use the generic PATH_MAX version of pa_realpath on Mac OS X systems. Signed-off-by: Mihai Moldovan --- diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c index 834c69be..1275c6e7 100644 --- a/src/pulsecore/core-util.c +++ b/src/pulsecore/core-util.c @@ -3003,7 +3003,7 @@ char *pa_realpath(const char *path) { return NULL; } -#if defined(__GLIBC__) || defined(__APPLE__) +#if defined(__GLIBC__) { char *r;