From 7fbedf9f148809d4d8c430e525b1bac7d7b209d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blin?= <sebastien.blin@savoirfairelinux.com> Date: Wed, 30 Aug 2023 08:44:47 -0400 Subject: [PATCH] fileutils: fix compilation on windows Change-Id: I652ffd4a1d3a6ed0adf6402cdf55cc97beb811a3 --- include/fileutils.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/fileutils.h b/include/fileutils.h index 8362cac..80efe42 100644 --- a/include/fileutils.h +++ b/include/fileutils.h @@ -24,6 +24,10 @@ #include <ios> #include <filesystem> +#ifndef _WIN32 +#include <sys/stat.h> // mode_t +#endif + namespace dhtnet { namespace fileutils { -- GitLab