summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/tdb/test/run-die-during-transaction.c3
-rw-r--r--lib/tdb/test/run-nested-traverse.c2
-rw-r--r--lib/tdb/test/run-no-lock-during-traverse.c2
-rw-r--r--lib/tdb/test/run-traverse-in-transaction.c2
4 files changed, 4 insertions, 5 deletions
diff --git a/lib/tdb/test/run-die-during-transaction.c b/lib/tdb/test/run-die-during-transaction.c
index e65f811119..d6502f4ea4 100644
--- a/lib/tdb/test/run-die-during-transaction.c
+++ b/lib/tdb/test/run-die-during-transaction.c
@@ -1,4 +1,4 @@
-#include <unistd.h>
+#include "../common/tdb_private.h"
#include "lock-tracking.h"
static ssize_t pwrite_check(int fd, const void *buf, size_t count, off_t offset);
static ssize_t write_check(int fd, const void *buf, size_t count);
@@ -9,7 +9,6 @@ static int ftruncate_check(int fd, off_t length);
#define fcntl fcntl_with_lockcheck
#define ftruncate ftruncate_check
-#include "../common/tdb_private.h"
#include "../common/io.c"
#include "../common/tdb.c"
#include "../common/lock.c"
diff --git a/lib/tdb/test/run-nested-traverse.c b/lib/tdb/test/run-nested-traverse.c
index 1742b11108..83efd0d8ca 100644
--- a/lib/tdb/test/run-nested-traverse.c
+++ b/lib/tdb/test/run-nested-traverse.c
@@ -1,6 +1,6 @@
+#include "../common/tdb_private.h"
#include "lock-tracking.h"
#define fcntl fcntl_with_lockcheck
-#include "../common/tdb_private.h"
#include "../common/io.c"
#include "../common/tdb.c"
#include "../common/lock.c"
diff --git a/lib/tdb/test/run-no-lock-during-traverse.c b/lib/tdb/test/run-no-lock-during-traverse.c
index 21e6d88e9c..25d9d784bf 100644
--- a/lib/tdb/test/run-no-lock-during-traverse.c
+++ b/lib/tdb/test/run-no-lock-during-traverse.c
@@ -1,8 +1,8 @@
+#include "../common/tdb_private.h"
#include "lock-tracking.h"
#define fcntl fcntl_with_lockcheck
-#include "../common/tdb_private.h"
#include "../common/io.c"
#include "../common/tdb.c"
#include "../common/lock.c"
diff --git a/lib/tdb/test/run-traverse-in-transaction.c b/lib/tdb/test/run-traverse-in-transaction.c
index 44c3dabc91..d8455176a2 100644
--- a/lib/tdb/test/run-traverse-in-transaction.c
+++ b/lib/tdb/test/run-traverse-in-transaction.c
@@ -1,6 +1,6 @@
#include "lock-tracking.h"
-#define fcntl fcntl_with_lockcheck
#include "../common/tdb_private.h"
+#define fcntl fcntl_with_lockcheck
#include "../common/io.c"
#include "../common/tdb.c"
#include "../common/lock.c"