From 8dc2f33d0a83419e7132a4f12de0acb8529eaaf9 Mon Sep 17 00:00:00 2001 From: Florian La Roche Date: Wed, 12 Sep 2018 10:34:47 +0200 Subject: [PATCH] package/mongodb: add patch to compile with glibc >= 2.28 glibc 2.28 no longer includes from , and therefore must be included explicitly when major()/minor() are used. Signed-off-by: Florian La Roche Signed-off-by: Thomas Petazzoni --- .../0001-add-missing-sysmacros-include.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 package/mongodb/0001-add-missing-sysmacros-include.patch diff --git a/package/mongodb/0001-add-missing-sysmacros-include.patch b/package/mongodb/0001-add-missing-sysmacros-include.patch new file mode 100644 index 0000000000..3a8bfa16c7 --- /dev/null +++ b/package/mongodb/0001-add-missing-sysmacros-include.patch @@ -0,0 +1,19 @@ +Add missing + +mmap_v1_engine.cpp is using major()/minor(), which are defined by +. This header file was implicitly included by + in glibc < 2.28. But this glibc 2.28, this is no longer +the case, so needs to be included explicitly. + +Signed-off-by: Florian La Roche + +--- ./src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp ++++ ./src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp +@@ -32,6 +32,7 @@ + + #include "mongo/db/storage/mmap_v1/mmap_v1_engine.h" + ++#include + #include + #include + #include