linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / kerberos / krb5-Fix-Linux-build-error-with-musl-libc.patch
blob0f33815b6e91da11bda37b6caa1f4b0ad203a2d0
1 From cbdbc8d00d31344fafe00e0fdf984e04e631f7c4 Mon Sep 17 00:00:00 2001
2 From: TBK <tbk@jjtc.eu>
3 Date: Wed, 26 Feb 2020 21:12:45 +0100
4 Subject: [PATCH] Fix Linux build error with musl libc
6 Commit bf5953c549a6d279977df69ffe89b2ba51460eaf caused a build failure
7 on non-glibc Linux build environments. Change the conditionalization
8 so that __GLIBC_PREREQ will only be used if it is defined.
10 [ghudson@mit.edu: simplified conditionals; rewrote commit message]
12 ticket: 8880 (new)
13 tags: pullup
14 target_version: 1.18-next
15 ---
16 src/util/support/plugins.c | 3 +--
17 1 file changed, 1 insertion(+), 2 deletions(-)
19 diff --git a/src/util/support/plugins.c b/src/util/support/plugins.c
20 index 3329db7dc3..1644d16fd0 100644
21 --- a/src/util/support/plugins.c
22 +++ b/src/util/support/plugins.c
23 @@ -62,8 +62,7 @@
24 * dlopen() with RTLD_NODELETE, we weren't going to unload the plugin objects
25 * anyway.
27 -#ifdef __linux__
28 -#include <features.h>
29 +#ifdef __GLIBC__PREREQ
30 #if ! __GLIBC_PREREQ(2, 25)
31 #define dlclose(x)
32 #endif