mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-20 08:18:40 +00:00
* Remove python dependency * Remove ecfd * Improve makefiles * Make preload.so more 32bit compatible
17 lines
538 B
C
17 lines
538 B
C
#pragma once
|
|
|
|
#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 __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
|
|
#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
|