summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian La Roche <F.LaRoche@pilz.de>2018-09-12 08:34:47 (GMT)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-09-16 19:53:31 (GMT)
commit8dc2f33d0a83419e7132a4f12de0acb8529eaaf9 (patch)
treeaa63927fbd65781292db24819b045b8ea8864cd0
parentc5a33a11be080fe8385787fa652b58e448d6c256 (diff)
downloadbuildroot-8dc2f33d0a83419e7132a4f12de0acb8529eaaf9.tar.gz
buildroot-8dc2f33d0a83419e7132a4f12de0acb8529eaaf9.tar.bz2
package/mongodb: add patch to compile with glibc >= 2.28
glibc 2.28 no longer includes <sys/sysmacros.h> from <sys/types.h>, and therefore <sys/sysmacros.h> must be included explicitly when major()/minor() are used. Signed-off-by: Florian La Roche <F.LaRoche@pilz.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/mongodb/0001-add-missing-sysmacros-include.patch19
1 files changed, 19 insertions, 0 deletions
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 0000000..3a8bfa1
--- /dev/null
+++ b/package/mongodb/0001-add-missing-sysmacros-include.patch
@@ -0,0 +1,19 @@
+Add missing <sys/sysmacros.h>
+
+mmap_v1_engine.cpp is using major()/minor(), which are defined by
+<sys/sysmacros.h>. This header file was implicitly included by
+<sys/types.h> in glibc < 2.28. But this glibc 2.28, this is no longer
+the case, so <sys/sysmacros.h> needs to be included explicitly.
+
+Signed-off-by: Florian La Roche <F.LaRoche@pilz.de>
+
+--- ./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 <sys/sysmacros.h>
+ #include <boost/filesystem/path.hpp>
+ #include <boost/filesystem/operations.hpp>
+ #include <fstream>