diff options
author | Simone Basso <bassosimone@gmail.com> | 2016-12-09 13:21:37 +0100 |
---|---|---|
committer | Simone Basso <bassosimone@gmail.com> | 2016-12-09 14:17:06 +0100 |
commit | 6fa2d21ba57b83c6148a8aa03a362ca9e771fe21 (patch) | |
tree | eee307c744632960800a9808b9652575bf335ea8 /dist.sh | |
parent | f8a9c71e793975e2d224cb01603bf814320545ab (diff) | |
download | portable-6fa2d21ba57b83c6148a8aa03a362ca9e771fe21.tar.gz portable-6fa2d21ba57b83c6148a8aa03a362ca9e771fe21.tar.bz2 portable-6fa2d21ba57b83c6148a8aa03a362ca9e771fe21.zip |
m4/check-libc.m4: improve getentropy check
- according to man.openbsd.org getentropy() is in unistd.h
- according to macOS sierra's man it's in sys/random.h
- since sys/random.h is does not exist for iOS and for linux, do
not attempt to include it, rather redeclare the prototype
- make sure that `./configure`:
- uses getentropy() on macOS sierra
- does not use getentropy() if compiling for 10.11
- does not use getentropy() if compiling for ios armv7
Diffstat (limited to 'dist.sh')
0 files changed, 0 insertions, 0 deletions