Version: 1.5.3 -> 1.5.4cvs
[mdsms.git] / strdup.c
index f67630f..1dfd7e7 100644 (file)
--- a/strdup.c
+++ b/strdup.c
@@ -5,8 +5,12 @@ static char rcsid[] ATTR_UNUSED = "$Id$";
 
 /* This part of code is a public domain */
 
-#include <string.h>
+#ifdef HAVE_STDLIB_H
 #include <stdlib.h>
+#endif
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
 
 /* CONFORMING TO SVID 3, BSD 4.3 */