From: TBK Date: Wed, 26 Feb 2020 20:12:45 +0000 (+0100) Subject: Fix Linux build error with musl libc X-Git-Tag: krb5-1.19-beta1~112 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1042%2Fhead;p=thirdparty%2Fkrb5.git Fix Linux build error with musl libc Commit bf5953c549a6d279977df69ffe89b2ba51460eaf caused a build failure on non-glibc Linux build environments. Change the conditionalization so that __GLIBC_PREREQ will only be used if it is defined. [ghudson@mit.edu: simplified conditionals; rewrote commit message] ticket: 8880 (new) tags: pullup target_version: 1.18-next --- diff --git a/src/util/support/plugins.c b/src/util/support/plugins.c index 3329db7dc3..1644d16fd0 100644 --- a/src/util/support/plugins.c +++ b/src/util/support/plugins.c @@ -62,8 +62,7 @@ * dlopen() with RTLD_NODELETE, we weren't going to unload the plugin objects * anyway. */ -#ifdef __linux__ -#include +#ifdef __GLIBC__PREREQ #if ! __GLIBC_PREREQ(2, 25) #define dlclose(x) #endif