Skip to content

Commit 074ad83

Browse files
committed
Fix musl compilation error on Alpine
Disruptions between glibc and musl-(not-)predefined feature-test macros led to a decision to remove a check for POSIX standards older than 17 years. It makes no sense to test the existence of a macro that we explicitly define in meson.build either (shall we test for _GNU_SOURCE).
1 parent 9aa43e0 commit 074ad83

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/programs/pkexec.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -674,12 +674,8 @@ main (int argc, char *argv[])
674674
argv[n] = path_abs;
675675
}
676676
}
677-
#if _POSIX_C_SOURCE >= 200809L
677+
678678
s = realpath(path, NULL);
679-
#else
680-
s = NULL;
681-
# error We have to deal with realpath(3) PATH_MAX madness
682-
#endif
683679
if (s != NULL)
684680
{
685681
/* The called program resolved to the canonical location. We don't update

0 commit comments

Comments
 (0)