From 3297afa629db39b21c38ac1d9164a2474097bc64 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 99e8617b..b947460b 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" /**