mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-26 01:46:31 -05:00
Build improvements (#1501)
* Remove python dependency * Remove ecfd * Improve makefiles * Make preload.so more 32bit compatible
This commit is contained in:
parent
33fc26f81f
commit
b18aba86b6
51 changed files with 1047 additions and 1033 deletions
|
|
@ -1,17 +1,16 @@
|
|||
#pragma once
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef HAVE_STRUCT_STAT_ST_ATIM
|
||||
#ifdef __linux__
|
||||
#define ST_ATIM_NSEC(ST) ((ST)->st_atim.tv_nsec)
|
||||
#define ST_CTIM_NSEC(ST) ((ST)->st_ctim.tv_nsec)
|
||||
#define ST_MTIM_NSEC(ST) ((ST)->st_mtim.tv_nsec)
|
||||
#elif defined HAVE_STRUCT_STAT_ST_ATIMESPEC
|
||||
#elif defined __FreeBSD__
|
||||
#define ST_ATIM_NSEC(ST) ((ST)->st_atimespec.tv_nsec)
|
||||
#define ST_CTIM_NSEC(ST) ((ST)->st_ctimespec.tv_nsec)
|
||||
#define ST_MTIM_NSEC(ST) ((ST)->st_mtimespec.tv_nsec)
|
||||
#else
|
||||
#define ST_ATIM_NSEC(ST) 0
|
||||
#define ST_CTIM_NSEC(ST) 0
|
||||
#define ST_MTIM_NSEC(ST) 0
|
||||
#error "Unsupported platform for st_{a,c,m}time nanosecond"
|
||||
/* #define ST_ATIM_NSEC(ST) 0 */
|
||||
/* #define ST_CTIM_NSEC(ST) 0 */
|
||||
/* #define ST_MTIM_NSEC(ST) 0 */
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue