From 894be0b24fbae2b84149d162609934b1efd9440d Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Fri, 2 Mar 2018 02:29:58 +0300 Subject: Don't use readdir_r on Linux. 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 --- libs/filesystem/src/operations.cpp | 1 + packaging/boost.spec | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3