Skip to content

Commit 408cd3f

Browse files
committed
fix: Windows build - add _access compatibility for POSIX access()
1 parent 5007baa commit 408cd3f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

cli/main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
#include <unistd.h>
3535
#include <sys/wait.h>
3636
#include <cerrno>
37+
#else
38+
#include <io.h>
39+
#define F_OK 0
40+
#define X_OK 0
41+
#define access _access
3742
#endif
3843

3944
using namespace tracesmith;

0 commit comments

Comments
 (0)