diff options
-rw-r--r-- | lib/strndup.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/strndup.c b/lib/strndup.c index 1b9170d3d..ab7c44626 100644 --- a/lib/strndup.c +++ b/lib/strndup.c @@ -1,8 +1,10 @@ #include "config.h" -#ifndef HOST_OS_DARWIN +#ifdef HAVE_MALLOC_H #include <malloc.h> -#else +#endif + +#ifdef HAVE_STDLIB_H #include <stdlib.h> #endif |