Skip to content

Commit 363429e

Browse files
move #include <sys/stat.h> into common
1 parent 7f143de commit 363429e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

code/logic/fossil/pizza/common.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@
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>

code/logic/sanity.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ 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
8281
struct _stat buffer;
8382
return (_stat(filename, &buffer) == 0); // On Windows, use the _stat function to check if the file exists.
8483
#else

0 commit comments

Comments
 (0)