* tc-h8300.c: If OBJ_ELF, include elf/h8.h, and define
[binutils-gdb.git] / libiberty / xmemdup.c
index f780041aa1330837d66fa1004f5619ca46c60afa..fdb17a547f3a9b1ceeb803f5517c578f15fa71bd 100644 (file)
@@ -9,6 +9,9 @@
 #include "libiberty.h"
 
 #include <sys/types.h> /* For size_t. */
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
 
 PTR
 xmemdup (input, copy_size, alloc_size)