diff options
author | TBK <tbk@jjtc.eu> | 2020-02-26 21:12:45 +0100 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2020-03-18 10:44:04 -0400 |
commit | 062dbfaa9c66d29bca3e7071fcaba336172987b9 (patch) | |
tree | c0f29ce9607c631a9c111affa25edb2e9d3d87aa | |
parent | 0badbf05a8cc7981980b20f2d3aa05989232f0b0 (diff) | |
download | krb5-062dbfaa9c66d29bca3e7071fcaba336172987b9.zip krb5-062dbfaa9c66d29bca3e7071fcaba336172987b9.tar.gz krb5-062dbfaa9c66d29bca3e7071fcaba336172987b9.tar.bz2 |
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]
(cherry picked from commit cbdbc8d00d31344fafe00e0fdf984e04e631f7c4)
ticket: 8880
version_fixed: 1.18.1
-rw-r--r-- | src/util/support/plugins.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util/support/plugins.c b/src/util/support/plugins.c index 3329db7..1644d16 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 <features.h> +#ifdef __GLIBC__PREREQ #if ! __GLIBC_PREREQ(2, 25) #define dlclose(x) #endif |