Files
macports-ports/lang/python34/files/patch-Python-random.c.diff

13 lines
231 B
Diff

--- Python/random.c
+++ Python/random.c
@@ -6,6 +6,9 @@
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
+#if defined(HAVE_GETENTROPY) && defined(HAVE_SYS_RANDOM_H)
+#include <sys/random.h>
+#endif
#endif
#ifdef Py_DEBUG