summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2005-08-20 23:04:35 +0000
committerJames Bursa <james@netsurf-browser.org>2005-08-20 23:04:35 +0000
commit4af7520647320c6cab6588e41bbf7224548b0561 (patch)
tree708b7acc9350f399e1a49dc34654115e20f3f5c4
parent8afd957986ade6208ec315fcac410a290e40b68b (diff)
downloadnetsurf-4af7520647320c6cab6588e41bbf7224548b0561.tar.gz
netsurf-4af7520647320c6cab6588e41bbf7224548b0561.tar.bz2
[project @ 2005-08-20 23:04:35 by bursa]
Fix strndup() warnings. svn path=/import/netsurf/; revision=1850
-rw-r--r--riscos/ucstables.c2
-rw-r--r--riscos/url_protocol.c1
-rw-r--r--utils/utf8.c1
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>