summaryrefslogtreecommitdiff
path: root/libs/filesystem/src/operations.cpp
diff options
context:
space:
mode:
authorAndrey Semashev <andrey.semashev@gmail.com>2018-03-02 02:29:58 +0300
committerHyunjee Kim <hj0426.kim@samsung.com>2019-04-16 02:03:43 +0000
commit894be0b24fbae2b84149d162609934b1efd9440d (patch)
tree4c89a77fe68e5f1aa2d29dd9b9112ce02ff37d59 /libs/filesystem/src/operations.cpp
parent60afb21148a76cbba976218941bd07544ad6b6f9 (diff)
downloadboost-accepted/tizen_5.0_unified.tar.gz
boost-accepted/tizen_5.0_unified.tar.bz2
boost-accepted/tizen_5.0_unified.zip
readdir_r has been deprecated and has problems of its own[1]. glibc 2.24 marked readdir_r as deprecated and may eventually remove it. At the same time, plain readdir is thread-safe if different threads call it for different directory streams, which is fine in our case. [1]: http://man7.org/linux/man-pages/man3/readdir_r.3.html Change-Id: Ic746a872118f7d141687ee4fe3bd4aaa54fc1f94 Signed-off-by: Hyunjee Kim <hj0426.kim@samsung.com>
Diffstat (limited to 'libs/filesystem/src/operations.cpp')
-rw-r--r--libs/filesystem/src/operations.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/filesystem/src/operations.cpp b/libs/filesystem/src/operations.cpp
index d8e8840c87..edec835e54 100644
--- a/libs/filesystem/src/operations.cpp
+++ b/libs/filesystem/src/operations.cpp
@@ -1985,6 +1985,7 @@ namespace
&& defined(_POSIX_THREAD_SAFE_FUNCTIONS)\
&& defined(_SC_THREAD_SAFE_FUNCTIONS)\
&& (_POSIX_THREAD_SAFE_FUNCTIONS+0 >= 0)\
+ && !(defined(linux) || defined(__linux) || defined(__linux__))\
&& (!defined(__hpux) || defined(_REENTRANT)) \
&& (!defined(_AIX) || defined(__THREAD_SAFE))
if (::sysconf(_SC_THREAD_SAFE_FUNCTIONS)>= 0)