Merge pull request 'j'ai du faire ses changement pour que ca compile sur linux' (#1) from massinissa/filehasher:fix-build-linux into main

Reviewed-on: amir/filehasher#1
This commit is contained in:
2026-04-16 19:06:01 +00:00
2 changed files with 3 additions and 3 deletions

1
base.h
View File

@@ -9,6 +9,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <errno.h>
#if defined(_WIN32) || defined(_WIN64)
#define PLATFORM_WINDOWS 1

View File

@@ -11,6 +11,7 @@
// xxhash include
#define XXH_INLINE_ALL
#include "xxh_x86dispatch.h"
#include <ctype.h>
// ----------------------------- 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;