diff options
author | Andrey Semashev <andrey.semashev@gmail.com> | 2018-03-01 23:29:58 (GMT) |
---|---|---|
committer | Hyunjee Kim <hj0426.kim@samsung.com> | 2019-04-16 04:10:17 (GMT) |
commit | aa72804a385b69bf8f117bab4ec174f546655be9 (patch) | |
tree | 5a50f670d73e7bff88140729a5a26a90d1696401 | |
parent | 399caee19df097d2071d6fad2073893fc557b3b6 (diff) | |
download | boost-accepted/tizen_unified.zip boost-accepted/tizen_unified.tar.gz boost-accepted/tizen_unified.tar.bz2 |
Don't use readdir_r on Linux.tizen_5.5.m2_releasesubmit/tizen_5.5/20191031.000006submit/tizen/20190704.014344submit/tizen/20190627.232050submit/tizen/20190627.000603submit/tizen/20190626.052933submit/tizen/20190618.021129submit/tizen/20190610.070809submit/tizen/20190527.233407submit/tizen/20190513.001809submit/tizen/20190430.023423submit/tizen/20190416.043657accepted/tizen/unified/20190704.115606accepted/tizen/5.5/unified/20191031.005440tizen_5.5sandbox/backup/boost_1.65.1_20191203sandbox/backup/boost_1.65.1accepted/tizen_unifiedaccepted/tizen_5.5_unifiedrefs/changes/69/203569/1
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.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/filesystem/src/operations.cpp b/libs/filesystem/src/operations.cpp index 4114e02..43453a4 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) |