summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/btree_test.c2
-rw-r--r--test/dict_bench.c1
-rw-r--r--test/inline_test.c6
-rw-r--r--test/ring_test.c1
-rw-r--r--test/tree_bench.c7
-rw-r--r--zix/sem.h4
-rw-r--r--zix/zix.h2
7 files changed, 16 insertions, 7 deletions
diff --git a/test/btree_test.c b/test/btree_test.c
index 8d687dc..a54d38a 100644
--- a/test/btree_test.c
+++ b/test/btree_test.c
@@ -20,10 +20,10 @@
#include "zix/common.h"
-#include <stdbool.h>
#include <assert.h>
#include <inttypes.h>
#include <stdarg.h>
+#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/test/dict_bench.c b/test/dict_bench.c
index b75ffc7..e26f88a 100644
--- a/test/dict_bench.c
+++ b/test/dict_bench.c
@@ -30,6 +30,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <time.h>
static const unsigned seed = 1;
diff --git a/test/inline_test.c b/test/inline_test.c
index 3b1a221..c935110 100644
--- a/test/inline_test.c
+++ b/test/inline_test.c
@@ -17,12 +17,14 @@
#define ZIX_INLINE
#include "zix/hash.c"
-#include "zix/hash.h"
#include "zix/tree.c"
-#include "zix/tree.h"
+
+#include <stddef.h>
int
main(void)
{
+ zix_hash_free(NULL);
+ zix_tree_free(NULL);
return 0;
}
diff --git a/test/ring_test.c b/test/ring_test.c
index bf7edd2..092606b 100644
--- a/test/ring_test.c
+++ b/test/ring_test.c
@@ -21,6 +21,7 @@
#include <limits.h>
#include <stdarg.h>
#include <stdbool.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/test/tree_bench.c b/test/tree_bench.c
index 9e58c8d..f87af78 100644
--- a/test/tree_bench.c
+++ b/test/tree_bench.c
@@ -16,16 +16,19 @@
#include "bench.h"
+#include "zix/btree.h"
#include "zix/common.h"
-#include "zix/zix.h"
+#include "zix/tree.h"
#include <glib.h>
#include <inttypes.h>
-#include <limits.h>
+#include <stdarg.h>
+#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
+#include <time.h>
// #define BENCH_SORTED_ARRAY 1
diff --git a/zix/sem.h b/zix/sem.h
index 2de5800..24bc446 100644
--- a/zix/sem.h
+++ b/zix/sem.h
@@ -27,8 +27,8 @@
# include <limits.h>
# include <windows.h>
#else
-# include <semaphore.h>
# include <errno.h>
+# include <semaphore.h>
#endif
#ifdef __cplusplus
@@ -42,6 +42,8 @@ extern "C" {
@{
*/
+struct ZixSemImpl;
+
/**
A counting semaphore.
diff --git a/zix/zix.h b/zix/zix.h
index 659bb1b..01d7ea6 100644
--- a/zix/zix.h
+++ b/zix/zix.h
@@ -23,10 +23,10 @@
@{
*/
+#include "zix/btree.h"
#include "zix/common.h"
#include "zix/sorted_array.h"
#include "zix/tree.h"
-#include "zix/btree.h"
/**
@}