diff options
author | Ralph Boehme <slow@samba.org> | 2019-11-27 11:28:08 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-12-06 00:17:35 +0000 |
commit | 5fe42bdcde1d686c885445a718f181a49953c918 (patch) | |
tree | 4ca66857e11f78ac14b307a79aaf9805d50a1a96 /lib/replace/system | |
parent | d95be9135890279a845cc6712a15236aaa87e4d7 (diff) | |
download | samba-5fe42bdcde1d686c885445a718f181a49953c918.tar.gz |
replace: ensure UTIME_NOW and UTIME_OMIT are always available
BUG: https://bugzilla.samba.org/show_bug.cgi?id=7771
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib/replace/system')
-rw-r--r-- | lib/replace/system/time.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/replace/system/time.h b/lib/replace/system/time.h index 00f0d7f99e6..272fe84fc93 100644 --- a/lib/replace/system/time.h +++ b/lib/replace/system/time.h @@ -96,4 +96,11 @@ int rep_clock_gettime(clockid_t clk_id, struct timespec *tp); #define CUSTOM_CLOCK_MONOTONIC_IS_REALTIME #endif +#ifndef UTIME_NOW +#define UTIME_NOW ((1l << 30) - 1l) +#endif +#ifndef UTIME_OMIT +#define UTIME_OMIT ((1l << 30) - 2l) +#endif + #endif |