summaryrefslogtreecommitdiff
path: root/utils/config.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-08-16 23:31:55 +0100
committerVincent Sanders <vince@kyllikki.org>2014-08-16 23:33:12 +0100
commitd0da99beca585f040d6564f2341949222afc6060 (patch)
tree5859eac1c6d395d4979ebe508093616e4a87327d /utils/config.h
parentbf8896a4502ad750e818d4efa4c3810e930dc8cc (diff)
downloadnetsurf-d0da99beca585f040d6564f2341949222afc6060.tar.gz
netsurf-d0da99beca585f040d6564f2341949222afc6060.tar.bz2
extend gtk viewdata to open files in an editor using the freedesktop default app specification
Diffstat (limited to 'utils/config.h')
-rw-r--r--utils/config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/config.h b/utils/config.h
index d44359576..21a2e4a5a 100644
--- a/utils/config.h
+++ b/utils/config.h
@@ -24,7 +24,7 @@
/* Try to detect which features the target OS supports */
-#if (defined(_GNU_SOURCE) && !defined(__APPLE__) || defined(__HAIKU__))
+#if (defined(_GNU_SOURCE) && !defined(__APPLE__) || defined(__HAIKU__) || (defined(_POSIX_C_SOURCE) && ((_POSIX_C_SOURCE - 0) >= 200809L)))
#define HAVE_STRNDUP
#else
#undef HAVE_STRNDUP