From fcd0b0fbd5449c665d6ae80e4ae6393e80fd6d1a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 13 Mar 2023 05:31:03 -0700 Subject: [PATCH] Fix macOS warning --- src/libutil/util.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libutil/util.cc b/src/libutil/util.cc index 17ccf3554..c1de4fb33 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -1070,12 +1070,14 @@ static pid_t doFork(bool allowVfork, std::function fun) } +#if __linux__ static int childEntry(void * arg) { auto main = (std::function *) arg; (*main)(); return 1; } +#endif pid_t startProcess(std::function fun, const ProcessOptions & options)