From 05e99626c4c8ba97d5d48eb8c3e55704ed70d358 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Fri, 20 Oct 2023 10:30:21 +0800 Subject: [PATCH] ascli-utils.c: Don't include unistd.h on Windows It's not used there, and it's really a wrapper header in MinGW that include various Windows system headers and define things to ease porting POSIX items to Windows. --- tools/ascli-utils.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/ascli-utils.c b/tools/ascli-utils.c index 335deab4a..d31693448 100644 --- a/tools/ascli-utils.c +++ b/tools/ascli-utils.c @@ -22,9 +22,12 @@ #include #include -#include #include +#ifndef G_OS_WIN32 +#include +#endif + #include "as-pool-private.h" /**