diff options
author | Pierre Ossman <ossman@cendio.se> | 2006-01-09 16:56:41 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2006-01-09 16:56:41 +0000 |
commit | 8258146625050d242b9bc3dc5f175985feb5e2bd (patch) | |
tree | 5b1557759dfd0a1c62d1d7c06003c9beeae0d492 | |
parent | 5fcbf04f5b95cccc61b2986a6582fa475e4d9c8b (diff) |
Generalise lstat fallback.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@429 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | polyp/util.c | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 7737d178..8030e6ae 100644 --- a/configure.ac +++ b/configure.ac @@ -186,6 +186,7 @@ AC_CHECK_FUNCS([ctime_r usleep]) # BSD AC_CHECK_LIB([socket], [connect]) +AC_CHECK_FUNCS([lstat]) # Non-standard diff --git a/polyp/util.c b/polyp/util.c index f1f4b2c5..b2f61d57 100644 --- a/polyp/util.c +++ b/polyp/util.c @@ -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; |