Skip to content

Commit 7f143de

Browse files
small change for windows side of file exist
1 parent 023ab20 commit 7f143de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

code/logic/sanity.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ int fossil_sanity_sys_create_file(const char* filename) {
7878

7979
int fossil_sanity_sys_file_exists(const char* filename) {
8080
#ifdef _WIN32
81+
#include <sys/stat.h> // Ensure the correct header is included for _stat
8182
struct _stat buffer;
8283
return (_stat(filename, &buffer) == 0); // On Windows, use the _stat function to check if the file exists.
8384
#else

0 commit comments

Comments
 (0)