HomePhabricator

[CMAKE] Fix daemon() detection on OSX

Description

[CMAKE] Fix daemon() detection on OSX

Summary: On BSDs and macOS, the daemon() function is located in stdlib.h.

Test Plan:
On OSX:

cmake -GNinja ..

Check daemon is found.

ninja
./src/bitcoind -daemon

Check the argument is supported and works as expected.

Run the OSX Gitian build and test the -daemon option is supported on
the produced bitcoind binary.

Reviewers: #bitcoin_abc, deadalnix, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Differential Revision: https://reviews.bitcoinabc.org/D5006

Details

Provenance
FabienAuthored on Jan 17 2020, 20:30
FabienPushed on Jan 17 2020, 21:37
Reviewer
Restricted Project
Differential Revision
D5006: [CMAKE] Fix daemon() detection on OSX
Parents
rSTAGING901fe9802776: Merge #14108: tests: Add missing locking annotations and locks (g_cs_orphans)
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/15624