rculfhash: do not include urcu-call-rcu.h from public API
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 30 Nov 2018 21:22:08 +0000 (16:22 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 12 Dec 2018 15:18:49 +0000 (10:18 -0500)
This include is not needed, and because of it rculfhash needs to be
included after the RCU flavor is chosen.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/urcu/flavor.h
include/urcu/rculfhash.h
src/rculfhash-internal.h

index 411fefb..d2d19f6 100644 (file)
@@ -27,6 +27,8 @@
 extern "C" {
 #endif
 
+struct rcu_head;
+
 struct urcu_atfork {
        void (*before_fork)(void *priv);
        void (*after_fork_parent)(void *priv);
index 0789aa5..6960879 100644 (file)
@@ -27,8 +27,8 @@
  */
 
 #include <stdint.h>
+#include <pthread.h>
 #include <urcu/compiler.h>
-#include <urcu-call-rcu.h>
 #include <urcu-flavor.h>
 
 #ifdef __cplusplus
index 0f8df97..d29a923 100644 (file)
@@ -26,6 +26,8 @@
 
 #include <urcu/rculfhash.h>
 #include <stdio.h>
+#include <stdlib.h>
+#include <assert.h>
 
 #ifdef DEBUG
 #define dbg_printf(fmt, args...)     printf("[debug rculfhash] " fmt, ## args)
This page took 0.050602 seconds and 4 git commands to generate.