Skip to content

Instantly share code, notes, and snippets.

@orip
Created November 23, 2020 11:22

Revisions

  1. orip created this gist Nov 23, 2020.
    14 changes: 14 additions & 0 deletions Python-3.4.3-macos.patch
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    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