File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 2929
3030#ifdef _WIN32
3131 #include < windows.h>
32+ #include < sys/stat.h>
3233#elif defined(__APPLE__)
3334 #include < sys/utsname.h>
3435 #include < sys/types.h>
3536 #include < unistd.h>
3637 #include < sys/sysctl.h>
38+ #include < sys/stat.h>
3739 #include < mach/mach_time.h>
3840#else
3941 #include < sys/utsname.h>
Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ int fossil_sanity_sys_create_file(const char* filename) {
7878
7979int fossil_sanity_sys_file_exists (const char * filename ) {
8080#ifdef _WIN32
81- #include <sys/stat.h> // Ensure the correct header is included for _stat
8281 struct _stat buffer ;
8382 return (_stat (filename , & buffer ) == 0 ); // On Windows, use the _stat function to check if the file exists.
8483#else
You can’t perform that action at this time.
0 commit comments