mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
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 <ionic@ionic.de>
This commit is contained in:
parent
017e1c4dda
commit
56ce2c67c2
1 changed files with 1 additions and 1 deletions
|
|
@ -3003,7 +3003,7 @@ char *pa_realpath(const char *path) {
|
|||
return NULL;
|
||||
}
|
||||
|
||||
#if defined(__GLIBC__) || defined(__APPLE__)
|
||||
#if defined(__GLIBC__)
|
||||
{
|
||||
char *r;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue