mongodb: fix patch
This commit is contained in:
parent
c69339c7f5
commit
7d9c157f94
@ -29,12 +29,12 @@
|
|||||||
BSONObjBuilder bExtra;
|
BSONObjBuilder bExtra;
|
||||||
bExtra.append("versionString", LinuxSysHelper::readLineFromFile("/proc/version"));
|
bExtra.append("versionString", LinuxSysHelper::readLineFromFile("/proc/version"));
|
||||||
-#ifdef __UCLIBC__
|
-#ifdef __UCLIBC__
|
||||||
+#elif defined(__UCLIBC__)
|
+#if defined(__UCLIBC__)
|
||||||
stringstream ss;
|
stringstream ss;
|
||||||
ss << "uClibc-" << __UCLIBC_MAJOR__ << "." << __UCLIBC_MINOR__ << "." << __UCLIBC_SUBLEVEL__;
|
ss << "uClibc-" << __UCLIBC_MAJOR__ << "." << __UCLIBC_MINOR__ << "." << __UCLIBC_SUBLEVEL__;
|
||||||
bExtra.append("libcVersion", ss.str());
|
bExtra.append("libcVersion", ss.str());
|
||||||
-#else
|
-#else
|
||||||
+#if defined(__GLIBC__)
|
+#elif defined(__GLIBC__)
|
||||||
bExtra.append("libcVersion", gnu_get_libc_version());
|
bExtra.append("libcVersion", gnu_get_libc_version());
|
||||||
#endif
|
#endif
|
||||||
if (!verSig.empty())
|
if (!verSig.empty())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user