diff --git a/libraries/libapparmor/testsuite/test_multi.c b/libraries/libapparmor/testsuite/test_multi.c index 578629500..7f37966ec 100644 --- a/libraries/libapparmor/testsuite/test_multi.c +++ b/libraries/libapparmor/testsuite/test_multi.c @@ -1,5 +1,3 @@ -#define _GNU_SOURCE /* for glibc's basename version */ - #include #include #include @@ -7,6 +5,12 @@ #include +static const char *basename(const char *path) +{ + const char *p = strrchr(path, '/'); + return p ? p + 1 : path; +} + int print_results(aa_log_record *record); int main(int argc, char **argv)