diff options
Diffstat (limited to 'riscos')
-rw-r--r-- | riscos/ucstables.c | 2 | ||||
-rw-r--r-- | riscos/url_protocol.c | 1 |
2 files changed, 3 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> |