summaryrefslogtreecommitdiff
path: root/utils/utils.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2010-04-26 09:27:16 +0000
committerVincent Sanders <vince@netsurf-browser.org>2010-04-26 09:27:16 +0000
commitbd9c0d9a7e03dff94904000384b5a03ce13d6f29 (patch)
tree88cdfaf94d6d0491e96594c04f3c07b7668566cf /utils/utils.c
parenta2c1afcc32eda671253b55e91fc79326071bf733 (diff)
downloadnetsurf-bd9c0d9a7e03dff94904000384b5a03ce13d6f29.tar.gz
netsurf-bd9c0d9a7e03dff94904000384b5a03ce13d6f29.tar.bz2
hopefully fix the _GNU_SOURCE mess
svn path=/trunk/netsurf/; revision=10487
Diffstat (limited to 'utils/utils.c')
-rw-r--r--utils/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/utils.c b/utils/utils.c
index b0069365e..175b33073 100644
--- a/utils/utils.c
+++ b/utils/utils.c
@@ -295,6 +295,7 @@ char *strcasestr(const char *haystack, const char *needle)
#endif
+#ifndef HAVE_STRNDUP
/**
* Duplicate up to n characters of a string.
@@ -317,6 +318,7 @@ char *strndup(const char *s, size_t n)
return s2;
}
+#endif
#ifndef HAVE_STRCHRNUL