mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
Generalise lstat fallback.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@429 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
5fcbf04f5b
commit
8258146625
2 changed files with 4 additions and 3 deletions
|
|
@ -186,6 +186,7 @@ AC_CHECK_FUNCS([ctime_r usleep])
|
||||||
|
|
||||||
# BSD
|
# BSD
|
||||||
AC_CHECK_LIB([socket], [connect])
|
AC_CHECK_LIB([socket], [connect])
|
||||||
|
AC_CHECK_FUNCS([lstat])
|
||||||
|
|
||||||
# Non-standard
|
# Non-standard
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -139,10 +139,10 @@ int pa_make_secure_dir(const char* dir) {
|
||||||
if (errno != EEXIST)
|
if (errno != EEXIST)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
#ifdef OS_IS_WIN32
|
#ifdef HAVE_LSTAT
|
||||||
if (stat(dir, &st) < 0)
|
|
||||||
#else
|
|
||||||
if (lstat(dir, &st) < 0)
|
if (lstat(dir, &st) < 0)
|
||||||
|
#else
|
||||||
|
if (stat(dir, &st) < 0)
|
||||||
#endif
|
#endif
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue