diff --git a/src/misc/basename.c b/src/misc/basename.c index 016b397..33159fc 100644 --- a/src/misc/basename.c +++ b/src/misc/basename.c @@ -1,8 +1,8 @@ -#define _GNU_SOURCE -#include "test.h" +#define _POSIX_C_SOURCE 200809L #include #include #include +#include "test.h" static void t(char *p, char *b) { char *tmp = strdup(p); diff --git a/src/misc/dirname.c b/src/misc/dirname.c index d77226a..50538b6 100644 --- a/src/misc/dirname.c +++ b/src/misc/dirname.c @@ -1,8 +1,8 @@ -#define _GNU_SOURCE -#include "test.h" +#define _POSIX_C_SOURCE 200809L #include #include #include +#include "test.h" static void t(char *p, char *b) { char *tmp = strdup(p);