Index: src/utf8.c
--- src/utf8.c.orig
+++ src/utf8.c
@@ -19,7 +19,7 @@
 #endif /* HAVE_ALLOCA_H */
 #include <assert.h>
 #if HAVE_MALLOC_H
-#   include <malloc.h>
+#   include <sys/malloc.h>
 #endif /* HAVE_MALLOC_H */
 #include <stdio.h>
 #include <string.h>
