]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix Linux build error with musl libc 1042/head
authorTBK <tbk@jjtc.eu>
Wed, 26 Feb 2020 20:12:45 +0000 (21:12 +0100)
committerGreg Hudson <ghudson@mit.edu>
Mon, 2 Mar 2020 21:51:06 +0000 (16:51 -0500)
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

src/util/support/plugins.c

index 3329db7dc3b4985bf4d4ab326265b36c65a21a6d..1644d16fd07e607a60d10613c44c422fcc576699 100644 (file)
@@ -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