]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
replace: ensure UTIME_NOW and UTIME_OMIT are always available
authorRalph Boehme <slow@samba.org>
Wed, 27 Nov 2019 11:28:08 +0000 (11:28 +0000)
committerJeremy Allison <jra@samba.org>
Fri, 6 Dec 2019 00:17:35 +0000 (00:17 +0000)
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>
lib/replace/system/time.h

index 00f0d7f99e65c14299680b6db771cd967aa5d3fb..272fe84fc93098c2b5f523c40e215fcd7e3b99b6 100644 (file)
@@ -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