Skip to content

Commit 93c6d2d

Browse files
committed
fixup! io: smooth out non-POSIX function usage across platforms
1 parent 99b6ae3 commit 93c6d2d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

kernel/gzip.cc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@
22
#include "kernel/log.h"
33
#include "kernel/gzip.h"
44
#include <iostream>
5-
#include <dirent.h>
65
#include <string>
76
#include <cstdarg>
87
#include <cstdio>
98

9+
#if !defined(WIN32)
10+
#include <dirent.h>
11+
#include <unistd.h>
12+
#else
13+
#include <io.h>
14+
#endif
15+
1016
YOSYS_NAMESPACE_BEGIN
1117

1218
#ifdef YOSYS_ENABLE_ZLIB

0 commit comments

Comments
 (0)