Created
November 23, 2020 11:22
-
-
Save orip/00142a498cf6d0c536b5d38771ad6249 to your computer and use it in GitHub Desktop.
Patch for Python 3.4.x for macos, based on https://bugs.python.org/issue28676
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
@DuncanTormey your solution was the only one that worked for me (I did it with 3.4.10 btw). Thank you 💪
@DuncanTormey, your solution was the only one that worked for me too..... thank you so much!!
@DuncanTormey your solution was only one that worked for me too.... thank you sooooo much
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I got it to work. I had to do this, notice the lack of a version stamp
Then...
and finally.
Where Python-3.4.3-macos.path is @karthicraghupathi version (thank you so much).
Thanks everyone! I would have been lost without this page. Afterwords i reinstalled openssl.