diff --git a/misc/win32/rand.c b/misc/win32/rand.c
index 562e56ccc6c..68dc2b32d8d 100644
--- a/misc/win32/rand.c
+++ b/misc/win32/rand.c
@@ -52,14 +52,12 @@
* .
*/
-#include
-#include
-#include
#include "apr.h"
#include "apr_private.h"
#include "apr_general.h"
#include "apr_portable.h"
#include "misc.h"
+#include
APR_DECLARE(apr_status_t) apr_generate_random_bytes(unsigned char * buf,