aboutsummaryrefslogtreecommitdiffstats
path: root/src/_cffi_src/utils.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2017-08-03 12:52:39 -0500
committerAlex Gaynor <alex.gaynor@gmail.com>2017-08-03 13:52:39 -0400
commitd026b1b226f97991cbf1994521fd1260eb27a762 (patch)
tree12c7a4ad500dd83e5dde2b6ba4bc4b69d2a5dba7 /src/_cffi_src/utils.py
parent765e771b1148755eb2344dd46747c7f853c62a52 (diff)
downloadcryptography-d026b1b226f97991cbf1994521fd1260eb27a762.tar.gz
cryptography-d026b1b226f97991cbf1994521fd1260eb27a762.tar.bz2
cryptography-d026b1b226f97991cbf1994521fd1260eb27a762.zip
Fix weak linking of getentropy when compiling on older macOS (#3841)
* Fix weak linking of getentropy when compiling on older macOS We use weak linking in macOS to determine if the getentropy symbol is available. However, to do that we need to have a declaration that states the function is __attribute((weak_import)) at compile time. On macOS 10.12 this is provided in sys/random.h, but on older macOS the declaration doesn't exist at all, so we need to forward declare it ourselves. * update a comment and a style nit
Diffstat (limited to 'src/_cffi_src/utils.py')
0 files changed, 0 insertions, 0 deletions