diff options
-rw-r--r-- | riscos/ucstables.c | 2 | ||||
-rw-r--r-- | riscos/url_protocol.c | 1 | ||||
-rw-r--r-- | utils/utf8.c | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/riscos/ucstables.c b/riscos/ucstables.c index ef103f367..ccc0f4582 100644 --- a/riscos/ucstables.c +++ b/riscos/ucstables.c @@ -8,6 +8,8 @@ /** \file * UCS conversion tables and RISC OS-specific UTF-8 text handling */ + +#define _GNU_SOURCE /* for strndup */ #include <assert.h> #include <limits.h> #include <string.h> diff --git a/riscos/url_protocol.c b/riscos/url_protocol.c index d046ed38b..fe293fe46 100644 --- a/riscos/url_protocol.c +++ b/riscos/url_protocol.c @@ -13,6 +13,7 @@ * See http://www.vigay.com/inet/inet_url.html */ +#define _GNU_SOURCE /* for strndup */ #include <ctype.h> #include <stdio.h> #include <string.h> diff --git a/utils/utf8.c b/utils/utf8.c index 56a1dab3a..a68d3c807 100644 --- a/utils/utf8.c +++ b/utils/utf8.c @@ -9,6 +9,7 @@ * UTF-8 manipulation functions (implementation). */ +#define _GNU_SOURCE /* for strndup */ #include <assert.h> #include <errno.h> #include <stdlib.h> |