diff -Naur Python-3.5.2-orig/Python/random.c Python-3.5.2/Python/random.c --- Python-3.5.2-orig/Python/random.c 2016-06-26 00:38:38.000000000 +0300 +++ Python-3.5.2/Python/random.c 2016-07-12 14:20:42.514300700 +0300 @@ -1,6 +1,12 @@ #include "Python.h" #ifdef MS_WINDOWS # include +#ifdef __MINGW32__ +/* NOTE: All sample MSDN wincrypt programs include header below as it + * is required to ensure that application could be build properly in + * all cases. */ +# include +#endif #else # include # ifdef HAVE_SYS_STAT_H