diff -Naur Python-3.5.0-orig/Python/random.c Python-3.5.0/Python/random.c --- Python-3.5.0-orig/Python/random.c 2015-09-13 14:41:26.000000000 +0300 +++ Python-3.5.0/Python/random.c 2015-09-21 13:41:10.674782000 +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