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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.