From 13745014c384aca9606dbda5364b6c7ea49e2471 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 7 Sep 2020 19:24:12 +1000 Subject: test: include unstd.h in the registry test to cut down the MacOS warnings mkdtmp, rmdir and unlink are in unstd.h on MacOS. Since including that it doesn't hurt us on Linux, let's do it without ifdefs. Signed-off-by: Peter Hutterer --- test/registry.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') diff --git a/test/registry.c b/test/registry.c index fc5f6da..fab3b69 100644 --- a/test/registry.c +++ b/test/registry.c @@ -24,6 +24,9 @@ #include "config.h" #include +#if HAVE_UNISTD_H +#include +#endif #include #include #include -- cgit v1.2.1