From: Ralph Boehme Date: Wed, 27 Nov 2019 11:28:08 +0000 (+0000) Subject: replace: ensure UTIME_NOW and UTIME_OMIT are always available X-Git-Tag: ldb-2.1.0~433 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5fe42bdcde1d686c885445a718f181a49953c918;p=thirdparty%2Fsamba.git 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 Reviewed-by: Jeremy Allison --- 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