mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-23 13:33:28 +08:00
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>
This commit is contained in:
parent
c5a33a11be
commit
8dc2f33d0a
19
package/mongodb/0001-add-missing-sysmacros-include.patch
Normal file
19
package/mongodb/0001-add-missing-sysmacros-include.patch
Normal file
@ -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>
|
Loading…
Reference in New Issue
Block a user