Page MenuHomePhabricator

[CMAKE] Fix getentropy detection on OSX
ClosedPublic

Authored by Fabien on Jan 17 2020, 21:37.

Details

Summary

OSX needs both unistd.h and sys/random.h in order to define
getentropy().

Test Plan

On OSX:

cmake -GNinja ..

Check the first getentropy (only unistd.h) fails, and the second one
(both unistd.h and sys/random.h) succeeds.

Run the OSX gitian build.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
cmake_getentropy_osx
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 9034
Build 16030: Default Diff Build & Tests
Build 16029: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Jan 17 2020, 21:40
This revision was automatically updated to reflect the committed changes.