diff --git a/newlib/libc/search/qsort_r.c b/newlib/libc/search/qsort_r.c index 0567be7..9073061 100644 --- a/newlib/libc/search/qsort_r.c +++ b/newlib/libc/search/qsort_r.c @@ -52,5 +52,6 @@ PORTABILITY <>, in various forms, appears in both BSD and glibc. */ +#define _GNU_SOURCE #define I_AM_GNU_QSORT_R #include "qsort.c" diff --git a/newlib/libc/stdio/fopencookie.c b/newlib/libc/stdio/fopencookie.c index 588fd48..3697b48 100644 --- a/newlib/libc/stdio/fopencookie.c +++ b/newlib/libc/stdio/fopencookie.c @@ -82,6 +82,7 @@ It is not portable. See also the <> interface from BSD. Supporting OS subroutines required: <>. */ +#define _GNU_SOURCE #include #include #include diff --git a/newlib/libc/stdlib/efgcvt.c b/newlib/libc/stdlib/efgcvt.c index 5d6e1ae..b7d9812 100644 --- a/newlib/libc/stdlib/efgcvt.c +++ b/newlib/libc/stdlib/efgcvt.c @@ -131,6 +131,8 @@ Supporting OS subroutines required: <>, <>, <>, <>, <>, <>, <>. */ +#define _XOPEN_SOURCE +#define _XOPEN_SOURCE_EXTENDED #include <_ansi.h> #include #include