j'ai du faire ses changement pour que ca compile sur linux #1
1
base.h
1
base.h
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user