summaryrefslogtreecommitdiff
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 13:10:17 +0900
commitaa72804a385b69bf8f117bab4ec174f546655be9 (patch)
tree5a50f670d73e7bff88140729a5a26a90d1696401
parent399caee19df097d2071d6fad2073893fc557b3b6 (diff)
downloadboost-submit/tizen_5.5/20191031.000006.tar.gz
boost-submit/tizen_5.5/20191031.000006.tar.bz2
boost-submit/tizen_5.5/20191031.000006.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: I15b3002d5ddc0ff1e94ade7ef3763ad07bfe2ebb Signed-off-by: Hyunjee Kim <hj0426.kim@samsung.com>
-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 4114e02a1a..43453a47c5 100644
--- a/libs/filesystem/src/operations.cpp
+++ b/libs/filesystem/src/operations.cpp
@@ -2175,6 +2175,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)