krb5 commit: Fix Linux build error with musl libc

Greg Hudson <[email protected]>
Newsgroups gmane.comp.encryption.kerberos.cvs
Message-ID <[email protected]>
https://github.com/krb5/krb5/commit/cbdbc8d00d31344fafe00e0fdf984e04e631f7c4
commit cbdbc8d00d31344fafe00e0fdf984e04e631f7c4
Author: TBK <[email protected]>
Date:   Wed Feb 26 21:12:45 2020 +0100

    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.
    
    [[email protected]: simplified conditionals; rewrote commit message]
    
    ticket: 8880 (new)
    tags: pullup
    target_version: 1.18-next

 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.