From 27e2df351bfdce8f4a1943e0ab2326e4053a0adc Mon Sep 17 00:00:00 2001 From: Jan Rybar Date: Wed, 19 Feb 2025 14:20:22 +0100 Subject: [PATCH] Fix musl compilation error on Alpine Feature-test macro _XOPEN_SOURCE is said to be an equivalent to _POSIX_C_SOURCE and apparently is defined on Alpine. --- src/programs/pkexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/programs/pkexec.c b/src/programs/pkexec.c index b439475f..daed0167 100644 --- a/src/programs/pkexec.c +++ b/src/programs/pkexec.c @@ -674,7 +674,7 @@ main (int argc, char *argv[]) argv[n] = path_abs; } } -#if _POSIX_C_SOURCE >= 200809L +#if _XOPEN_SOURCE >= 700 s = realpath(path, NULL); #else s = NULL;