summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Semashev <andrey.semashev@gmail.com>2018-03-01 23:29:58 (GMT)
committerHyunjee Kim <hj0426.kim@samsung.com>2019-04-16 02:03:43 (GMT)
commit894be0b24fbae2b84149d162609934b1efd9440d (patch)
tree4c89a77fe68e5f1aa2d29dd9b9112ce02ff37d59
parent60afb21148a76cbba976218941bd07544ad6b6f9 (diff)
downloadboost-tizen_5.0.zip
boost-tizen_5.0.tar.gz
boost-tizen_5.0.tar.bz2
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.cpp1
-rw-r--r--packaging/boost.spec2
2 files changed, 2 insertions, 1 deletions
diff --git a/libs/filesystem/src/operations.cpp b/libs/filesystem/src/operations.cpp
index d8e8840..edec835 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 1b21300..0094ad2 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