diff --git a/base.h b/base.h index 675e2d1..cafaafb 100644 --- a/base.h +++ b/base.h @@ -9,6 +9,7 @@ #include #include #include +#include #if defined(_WIN32) || defined(_WIN64) #define PLATFORM_WINDOWS 1 diff --git a/platform.c b/platform.c index 162e985..669402c 100644 --- a/platform.c +++ b/platform.c @@ -11,6 +11,7 @@ // xxhash include #define XXH_INLINE_ALL #include "xxh_x86dispatch.h" +#include // ----------------------------- Config ------------------------------------- #define FILE_HASHES_TXT "file_hashes.txt" @@ -584,8 +585,6 @@ void scan_folder(const char *base, ScannerContext *ctx) { } #elif defined(__linux__) -To test -Choice 1 static int platform_get_file_times_fd(int dir_fd, const char *name, time_t *created, time_t *modified) { struct stat st; @@ -617,7 +616,7 @@ static int platform_get_file_owner_fd(int dir_fd, const char *name, char *owner, return 0; } return -1; - +} void scan_folder(const char *base, ScannerContext *ctx) { PathBuilder pb;