mirror of
https://github.com/ivabus/pantry
synced 2024-11-14 04:25:08 +03:00
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
|