From 3545e513f53340c504e55e5f496ad3067989ab09 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 26 Sep 2005 02:03:06 +0000 Subject: r10496: - added configure test for sys/time.h - print length of failed locks (This used to be commit 11739ad31d7b3e1cf94ebf395608647e341257c4) --- source4/lib/tdb/common/lock.c | 4 ++-- source4/lib/tdb/config.m4 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/lib') diff --git a/source4/lib/tdb/common/lock.c b/source4/lib/tdb/common/lock.c index 750d34ea31..976cf2cfa0 100644 --- a/source4/lib/tdb/common/lock.c +++ b/source4/lib/tdb/common/lock.c @@ -68,8 +68,8 @@ int tdb_brlock_len(struct tdb_context *tdb, tdb_off_t offset, if (!probe && lck_type != F_SETLK) { /* Ensure error code is set for log fun to examine. */ tdb->ecode = TDB_ERR_LOCK; - TDB_LOG((tdb, 5,"tdb_brlock failed (fd=%d) at offset %d rw_type=%d lck_type=%d\n", - tdb->fd, offset, rw_type, lck_type)); + TDB_LOG((tdb, 5,"tdb_brlock failed (fd=%d) at offset %d rw_type=%d lck_type=%d len=%d\n", + tdb->fd, offset, rw_type, lck_type, len)); } return TDB_ERRCODE(TDB_ERR_LOCK, -1); } diff --git a/source4/lib/tdb/config.m4 b/source4/lib/tdb/config.m4 index e37662fe52..23784f3723 100644 --- a/source4/lib/tdb/config.m4 +++ b/source4/lib/tdb/config.m4 @@ -1,5 +1,5 @@ AC_CHECK_FUNCS(mmap pread pwrite getpagesize) -AC_CHECK_HEADERS(getopt.h sys/select.h) +AC_CHECK_HEADERS(getopt.h sys/select.h sys/time.h) AC_DEFINE([_GNU_SOURCE],[],[Pull in GNU extensions]) -- cgit