From 67095c76f64c61a5472c0233e44520ccc4eddbc8 Mon Sep 17 00:00:00 2001 From: Guillaume Xavier Taillon Date: Mon, 22 Feb 2016 14:46:24 -0500 Subject: libbreplace: compatibility fix for AIX MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds macros for preprocessor compares and replaces an incomptatible compare with one of the new macros. This fixes a comptability bug on AIX. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11621 Signed-off-by: Guillaume Xavier Taillon Reviewed-by: Björn Jacke Reviewed-by: Stefan Metzmacher Autobuild-User(master): Björn Jacke Autobuild-Date(master): Tue Jun 13 09:11:56 CEST 2017 on sn-devel-144 --- lib/util/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/util') diff --git a/lib/util/time.c b/lib/util/time.c index 8c01627e2a1..8a4d93d4ac1 100644 --- a/lib/util/time.c +++ b/lib/util/time.c @@ -60,7 +60,7 @@ _PUBLIC_ void clock_gettime_mono(struct timespec *tp) } #endif /* then try the monotonic clock: */ -#if CUSTOM_CLOCK_MONOTONIC != CLOCK_REALTIME +#ifndef CUSTOM_CLOCK_MONOTONIC_IS_REALTIME if (clock_gettime(CUSTOM_CLOCK_MONOTONIC,tp) == 0) { return; } -- cgit v1.2.1