summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-01-24 09:45:49 +0000
committerVincent Sanders <vince@kyllikki.org>2016-01-24 09:45:49 +0000
commit5c2dc7300edb6449b29285818fde794ce2669f29 (patch)
tree9c6980b8a4b27fc202d1fdce4a75eba92e5da0f0
parent3b234d26b7fc44a85c2e0e94932c4ef6e0ed0381 (diff)
downloadnsgenbind-5c2dc7300edb6449b29285818fde794ce2669f29.tar.gz
nsgenbind-5c2dc7300edb6449b29285818fde794ce2669f29.tar.bz2
simplify strndup detection
-rw-r--r--src/utils.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/utils.h b/src/utils.h
index 6d45ca5..a46946a 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -36,9 +36,7 @@ FILE *genb_fopen_tmp(const char *fname);
*/
int genb_fclose_tmp(FILE *filef, const char *fname);
-#if (defined(_GNU_SOURCE) && !defined(__APPLE__) && !defined(_WIN32) || defined(__amigaos4__) || defined(__HAIKU__) || (defined(_POSIX_C_SOURCE) && ((_POSIX_C_SOURCE - 0) >= 200809L)))
-#undef NEED_STRNDUP
-#else
+#if defined(__APPLE__) || defined(_WIN32)
#define NEED_STRNDUP 1
char *strndup(const char *s, size_t n);
#endif