aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mongodb/fix-processinfo_linux.patch
blob: 0c07fa4c815a268f0b773fc8b3d13f2fbf505a56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- a/src/mongo/util/processinfo_linux.cpp
+++ b/src/mongo/util/processinfo_linux.cpp
@@ -40,11 +40,11 @@
 #include <sys/mman.h>
 #include <sys/utsname.h>
 #include <unistd.h>
-#ifdef __UCLIBC__
+//#ifdef __UCLIBC__
 #include <features.h>
-#else
-#include <gnu/libc-version.h>
-#endif
+//#else
+//#include <gnu/libc-version.h>
+//#endif
 
 #include <boost/filesystem.hpp>
 #include <boost/none.hpp>
@@ -487,13 +487,9 @@
 
     BSONObjBuilder bExtra;
     bExtra.append("versionString", LinuxSysHelper::readLineFromFile("/proc/version"));
-#ifdef __UCLIBC__
     stringstream ss;
-    ss << "uClibc-" << __UCLIBC_MAJOR__ << "." << __UCLIBC_MINOR__ << "." << __UCLIBC_SUBLEVEL__;
+    ss << "musl-1.1.16";
     bExtra.append("libcVersion", ss.str());
-#else
-    bExtra.append("libcVersion", gnu_get_libc_version());
-#endif
     if (!verSig.empty())
         // optional
         bExtra.append("versionSignature", verSig);