Skip to content

Commit

Permalink
io: smooth out non-POSIX function usage across platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
widlarizer committed Jan 5, 2025
1 parent d75b6bb commit c1028be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kernel/io.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
#include <dirent.h>
#include <string>

#if !defined(WIN32)
#include <unistd.h>
#else
#include <io.h>
#endif

YOSYS_NAMESPACE_BEGIN

// Set of utilities for handling files
Expand Down

0 comments on commit c1028be

Please sign in to comment.