Index: /trunk/docs/Changelog
===================================================================
--- /trunk/docs/Changelog	(revision 519)
+++ /trunk/docs/Changelog	(revision 520)
@@ -1,3 +1,4 @@
 4.2.1:
+	* fix build issue with musl libc (report & patch by A. Kuster)
 	* fix case sensitivity (tcp vs TCP, udp vs UDP) in portcheck
 	directives (reported by Anton H.)
Index: /trunk/src/dnmalloc.c
===================================================================
--- /trunk/src/dnmalloc.c	(revision 519)
+++ /trunk/src/dnmalloc.c	(revision 520)
@@ -822,5 +822,5 @@
  * it may actually raise an error.
  */
-#if defined(HAVE_MALLOC_H) && !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__NetBSD__)
+#if defined(HAVE_MALLOC_H) && !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__NetBSD__) && defined(__GLIBC__)
 #include <malloc.h>
 #else
@@ -5525,5 +5525,5 @@
                 struct timeval tv1;
                 struct timeval tv2;
-                u_int rnd[(128 - 2*sizeof(struct timeval)) / sizeof(u_int)];
+                unsigned char rnd[(128 - 2*sizeof(struct timeval)) / sizeof(unsigned char)];
         } rdat;
 #if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__)
