https://github.com/gssapi/gssproxy/commit/f6ab3193e64ecc9db4d253b6dd99991f461b6081 From: Brahmajit Das Date: Wed, 31 May 2023 04:53:23 +0000 Subject: [PATCH] Fix build with musl and llvm Signed-off-by: Brahmajit Das --- a/src/gp_util.c +++ b/src/gp_util.c @@ -63,7 +63,7 @@ char *gp_strerror(int errnum) static __thread char buf[MAX_GP_STRERROR]; int saved_errno = errno; -#if ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !_GNU_SOURCE) +#if ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !_GNU_SOURCE) || !defined(__GLIBC__) /* XSI version */ int ret; --- a/tests/userproxytest.c +++ b/tests/userproxytest.c @@ -5,6 +5,7 @@ #include #include #include +#include #include #include #include -- 2.40.1