Skip to content

Commit 8fad010

Browse files
Merge pull request #5928 from craigcomstock/ENT-13016/master
Various fixups related to rhel-10 and deb-13 platforms
2 parents ef33cae + a7d6bb2 commit 8fad010

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

libpromises/eval_context.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3972,7 +3972,12 @@ void EvalContextAddFunctionEvent(EvalContext *ctx, const FnCall *fp, int64_t sta
39723972
int64_t EvalContextEventStart()
39733973
{
39743974
struct timespec ts;
3975+
#ifdef CLOCK_MONOTONIC
39753976
clock_gettime(CLOCK_MONOTONIC, &ts);
3977+
#else
3978+
// As in libcfnet/net.c some OS-es don't have monotonic clock, realtime clock is best we can do.
3979+
clock_gettime(CLOCK_REALTIME, &ts);
3980+
#endif
39763981
return ts.tv_sec * 1000000000LL + ts.tv_nsec;
39773982
}
39783983

m4/cf3_with_library.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ AC_DEFUN([CF3_WITH_LIBRARY],
8484
if test "x$with_[$1]" != xyes &&
8585
test "x$with_[$1]" != xcheck &&
8686
test "x$with_[$1]" != x/usr &&
87-
test "x$with_[$1]" != x/
87+
test "x$with_[$1]" != x/ &&
88+
test -n "$with_[$1]"
8889
then
8990
ULN[]_LDFLAGS="$ULN[]_LDFLAGS -R$with_[$1]/lib"
9091
fi

0 commit comments

Comments
 (0)