From d0da99beca585f040d6564f2341949222afc6060 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 16 Aug 2014 23:31:55 +0100 Subject: extend gtk viewdata to open files in an editor using the freedesktop default app specification --- utils/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') 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 -- cgit v1.2.3