From c1028be190aa78ca4b1a98c72cccac2c39b1abb7 Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Sun, 5 Jan 2025 23:55:38 +0100 Subject: [PATCH] io: smooth out non-POSIX function usage across platforms --- kernel/io.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kernel/io.cc b/kernel/io.cc index 0fdbd3c37..7d812fc74 100644 --- a/kernel/io.cc +++ b/kernel/io.cc @@ -4,6 +4,12 @@ #include #include +#if !defined(WIN32) +#include +#else +#include +#endif + YOSYS_NAMESPACE_BEGIN // Set of utilities for handling files