diff --git a/srcpkgs/mongodb/patches/musl-libc_version_h.patch b/srcpkgs/mongodb/patches/musl-libc_version_h.patch index e974680512..7cb9dc8b49 100644 --- a/srcpkgs/mongodb/patches/musl-libc_version_h.patch +++ b/srcpkgs/mongodb/patches/musl-libc_version_h.patch @@ -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())