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: #1
This commit was merged in pull request #1.
This commit is contained in:
1
base.h
1
base.h
@@ -9,6 +9,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
#include <errno.h>
|
||||||
|
|
||||||
#if defined(_WIN32) || defined(_WIN64)
|
#if defined(_WIN32) || defined(_WIN64)
|
||||||
#define PLATFORM_WINDOWS 1
|
#define PLATFORM_WINDOWS 1
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
// xxhash include
|
// xxhash include
|
||||||
#define XXH_INLINE_ALL
|
#define XXH_INLINE_ALL
|
||||||
#include "xxh_x86dispatch.h"
|
#include "xxh_x86dispatch.h"
|
||||||
|
#include <ctype.h>
|
||||||
|
|
||||||
// ----------------------------- Config -------------------------------------
|
// ----------------------------- Config -------------------------------------
|
||||||
#define FILE_HASHES_TXT "file_hashes.txt"
|
#define FILE_HASHES_TXT "file_hashes.txt"
|
||||||
@@ -584,8 +585,6 @@ void scan_folder(const char *base, ScannerContext *ctx) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#elif defined(__linux__)
|
#elif defined(__linux__)
|
||||||
To test
|
|
||||||
Choice 1
|
|
||||||
static int platform_get_file_times_fd(int dir_fd, const char *name,
|
static int platform_get_file_times_fd(int dir_fd, const char *name,
|
||||||
time_t *created, time_t *modified) {
|
time_t *created, time_t *modified) {
|
||||||
struct stat st;
|
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 0;
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
void scan_folder(const char *base, ScannerContext *ctx) {
|
void scan_folder(const char *base, ScannerContext *ctx) {
|
||||||
PathBuilder pb;
|
PathBuilder pb;
|
||||||
|
|||||||
Reference in New Issue
Block a user