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 <[email protected]> --- src/pulsecore/core-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c
index 82480c6..1b9960c 100644
--- a/src/pulsecore/core-util.c
+++ b/src/pulsecore/core-util.c
@@ -2970,7 +2970,7 @@ char *pa_realpath(const char *path) {
return NULL;
}
-#if defined(__GLIBC__) || defined(__APPLE__)
+#if defined(__GLIBC__)
{
char *r;
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ pulseaudio-discuss mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
