mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 08:55:07 +03:00
14 lines
350 B
Diff
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
|