From 283f27fe5b0479aec1e24d939c5c20694959aa49 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Tue, 27 Aug 2024 19:23:18 +0200 Subject: [PATCH] Fix include of unistd.h on Windows --- src/tools.cpp | 2 +- src/zimcheck/zimcheck.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/tools.cpp b/src/tools.cpp index a5c8c160..1459eb60 100644 --- a/src/tools.cpp +++ b/src/tools.cpp @@ -30,7 +30,6 @@ #include #include #include -#include #include #include #include @@ -38,6 +37,7 @@ #ifdef _WIN32 #define SEPARATOR "\\" #else +#include #define SEPARATOR "/" #endif diff --git a/src/zimcheck/zimcheck.cpp b/src/zimcheck/zimcheck.cpp index 729847e4..2703c923 100644 --- a/src/zimcheck/zimcheck.cpp +++ b/src/zimcheck/zimcheck.cpp @@ -20,7 +20,6 @@ * MA 02110-1301, USA. */ -#include #include #include #include @@ -35,6 +34,10 @@ #include #include +#ifndef _WIN32 +#include +#endif + #include "../progress.h" #include "../version.h" #include "../tools.h"