On Windows, getpid() is _getpid(), and requires that we first include
<process.h>. arc4random.c previously didn't know that.
Actually, I question whether arc4random needs to do its getpid() tricks
on Windows. They exist only so that we remember to re-seed the ARC4
cipher whenever we fork... but Windows has no fork(), so I think we're
in the clear.
#ifndef ARC4RANDOM_NO_INCLUDES
#ifdef WIN32
#include <wincrypt.h>
+#include <process.h>
#else
#include <fcntl.h>
#include <unistd.h>
arc4_count = BYTES_BEFORE_RESEED;
}
+#ifdef WIN32
+#define getpid _getpid
+#endif
+
static void
arc4_stir_if_needed(void)
{