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:
Pierre Ossman 2006-01-09 16:56:41 +00:00
parent 5fcbf04f5b
commit 8258146625
2 changed files with 4 additions and 3 deletions

View file

@ -186,6 +186,7 @@ AC_CHECK_FUNCS([ctime_r usleep])
# BSD
AC_CHECK_LIB([socket], [connect])
AC_CHECK_FUNCS([lstat])
# Non-standard

View file

@ -139,10 +139,10 @@ int pa_make_secure_dir(const char* dir) {
if (errno != EEXIST)
return -1;
#ifdef OS_IS_WIN32
if (stat(dir, &st) < 0)
#else
#ifdef HAVE_LSTAT
if (lstat(dir, &st) < 0)
#else
if (stat(dir, &st) < 0)
#endif
goto fail;