mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
43fe64cfe0
* fix(python) fixes older versions * fixes for 3.9 * fixes for 3.8 * fixes for 3.7 * simpler if versions * fixes 3.6 * fixes 3.5 * fix 3.4 * exclude non-working tests * stop at 3.2.4 (Apr 6, 2013)
15 lines
331 B
Diff
15 lines
331 B
Diff
diff --git a/Python/random.c b/Python/random.c
|
|
index 93d300d..396041d 100644
|
|
--- a/Python/random.c
|
|
+++ b/Python/random.c
|
|
@@ -3,6 +3,9 @@
|
|
#include <windows.h>
|
|
#else
|
|
#include <fcntl.h>
|
|
+#if defined(HAVE_GETRANDOM) || defined(HAVE_GETENTROPY)
|
|
+#include <sys/random.h>
|
|
+#endif
|
|
#ifdef HAVE_SYS_STAT_H
|
|
#include <sys/stat.h>
|
|
#endif
|