mongodb: fix patch

This commit is contained in:
Enno Boland 2016-01-12 15:53:21 +01:00
parent c69339c7f5
commit 7d9c157f94
1 changed files with 2 additions and 2 deletions

View File

@ -29,12 +29,12 @@
BSONObjBuilder bExtra;
bExtra.append("versionString", LinuxSysHelper::readLineFromFile("/proc/version"));
-#ifdef __UCLIBC__
+#elif defined(__UCLIBC__)
+#if defined(__UCLIBC__)
stringstream ss;
ss << "uClibc-" << __UCLIBC_MAJOR__ << "." << __UCLIBC_MINOR__ << "." << __UCLIBC_SUBLEVEL__;
bExtra.append("libcVersion", ss.str());
-#else
+#if defined(__GLIBC__)
+#elif defined(__GLIBC__)
bExtra.append("libcVersion", gnu_get_libc_version());
#endif
if (!verSig.empty())