diff options
author | Andrey Semashev <andrey.semashev@gmail.com> | 2018-03-02 02:29:58 +0300 |
---|---|---|
committer | Hyunjee Kim <hj0426.kim@samsung.com> | 2019-04-16 02:03:43 +0000 |
commit | 894be0b24fbae2b84149d162609934b1efd9440d (patch) | |
tree | 4c89a77fe68e5f1aa2d29dd9b9112ce02ff37d59 | |
parent | 60afb21148a76cbba976218941bd07544ad6b6f9 (diff) | |
download | boost-tizen_5.0.tar.gz boost-tizen_5.0.tar.bz2 boost-tizen_5.0.zip |
Don't use readdir_r on Linux.submit/tizen_5.0/20190416.021011accepted/tizen/5.0/unified/20190416.075932tizen_5.0accepted/tizen_5.0_unified
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>
-rw-r--r-- | libs/filesystem/src/operations.cpp | 1 | ||||
-rw-r--r-- | packaging/boost.spec | 2 |
2 files changed, 2 insertions, 1 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) diff --git a/packaging/boost.spec b/packaging/boost.spec index 1b213009d5..0094ad2386 100644 --- a/packaging/boost.spec +++ b/packaging/boost.spec @@ -70,7 +70,7 @@ Summary: Boost C++ Libraries License: BSL-1.0 Group: Base/Libraries Version: 1.58.0 -Release: 1 +Release: 2 Source0: %{name}_%{file_version}.tar.bz2 Source1: boost-rpmlintrc Source4: existing_extra_docs |