pantry/projects/python.org/patch3.5.diff
Jacob Heider 43fe64cfe0
fix(python) (#2435)
* 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)
2023-07-07 18:37:32 -04:00

14 lines
350 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