summaryrefslogtreecommitdiff
path: root/src/third_party
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2021-05-12 11:23:55 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-05-13 18:26:13 +0000
commit296bf276d0a38fbb7cd459ab27f2499944433664 (patch)
treea8f94c41817d97cd818953771c615cf51b3806d5 /src/third_party
parent72960c339acb3a8d9e4d90c467b5d4e320eea145 (diff)
downloadmongo-296bf276d0a38fbb7cd459ab27f2499944433664.tar.gz
SERVER-44079 Work around issues with SYS_getrandom on our RHEL 7 builders
Diffstat (limited to 'src/third_party')
-rw-r--r--src/third_party/boost/libs/filesystem/src/unique_path.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/third_party/boost/libs/filesystem/src/unique_path.cpp b/src/third_party/boost/libs/filesystem/src/unique_path.cpp
index 185cfd8c256..0c075750a12 100644
--- a/src/third_party/boost/libs/filesystem/src/unique_path.cpp
+++ b/src/third_party/boost/libs/filesystem/src/unique_path.cpp
@@ -28,10 +28,15 @@
# define BOOST_FILESYSTEM_HAS_ARC4RANDOM
# endif
# if (defined(__linux__) || defined(__linux) || defined(linux)) && (!defined(__ANDROID__) || __ANDROID_API__ >= 28)
-# include <sys/syscall.h>
-# if defined(SYS_getrandom)
-# define BOOST_FILESYSTEM_HAS_SYS_GETRANDOM
-# endif // defined(SYS_getrandom)
+
+// MONGODB MODIFICATION: On our RHEL 7.0, we find that SYS_getrandom is defined, but the kernel
+// doesn't actually offer support. Don't look for syscall based support until that is fixed.
+//
+//# include <sys/syscall.h>
+//# if defined(SYS_getrandom)
+//# define BOOST_FILESYSTEM_HAS_SYS_GETRANDOM
+//# endif // defined(SYS_getrandom)
+
# if defined(__has_include)
# if __has_include(<sys/random.h>)
# define BOOST_FILESYSTEM_HAS_GETRANDOM