summaryrefslogtreecommitdiff
path: root/lib/strdup.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/strdup.h')
-rw-r--r--lib/strdup.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/strdup.h b/lib/strdup.h
index 4dc6a391c..d58bd13e2 100644
--- a/lib/strdup.h
+++ b/lib/strdup.h
@@ -21,7 +21,7 @@
/* Get strdup declaration, if available. */
#include <string.h>
-#if !HAVE_DECL_STRDUP && !defined strdup
+#if defined HAVE_DECL_STRDUP && !HAVE_DECL_STRDUP && !defined strdup
/* Duplicate S, returning an identical malloc'd string. */
extern char *strdup (const char *s);
#endif