From: Joel Rosdahl Date: Thu, 7 Mar 2024 20:53:07 +0000 (+0100) Subject: test: Include unistd.h for getpid X-Git-Tag: v4.10~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb06c293cba8f8cc7710a79e91b7e0da35a0fdb8;p=thirdparty%2Fccache.git test: Include unistd.h for getpid --- diff --git a/unittest/main.cpp b/unittest/main.cpp index 2407eb06..37d3ec84 100644 --- a/unittest/main.cpp +++ b/unittest/main.cpp @@ -25,6 +25,10 @@ #define DOCTEST_CONFIG_IMPLEMENT #include +#ifdef HAVE_UNISTD_H +# include +#endif + namespace fs = util::filesystem; int