From 6bcce2356ba83372b1ca481ace59f5d489e269f2 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 30 Nov 2018 16:22:08 -0500 Subject: [PATCH] rculfhash: do not include urcu-call-rcu.h from public API 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 --- include/urcu/flavor.h | 2 ++ include/urcu/rculfhash.h | 2 +- src/rculfhash-internal.h | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/urcu/flavor.h b/include/urcu/flavor.h index 411fefb..d2d19f6 100644 --- a/include/urcu/flavor.h +++ b/include/urcu/flavor.h @@ -27,6 +27,8 @@ extern "C" { #endif +struct rcu_head; + struct urcu_atfork { void (*before_fork)(void *priv); void (*after_fork_parent)(void *priv); diff --git a/include/urcu/rculfhash.h b/include/urcu/rculfhash.h index 0789aa5..6960879 100644 --- a/include/urcu/rculfhash.h +++ b/include/urcu/rculfhash.h @@ -27,8 +27,8 @@ */ #include +#include #include -#include #include #ifdef __cplusplus diff --git a/src/rculfhash-internal.h b/src/rculfhash-internal.h index 0f8df97..d29a923 100644 --- a/src/rculfhash-internal.h +++ b/src/rculfhash-internal.h @@ -26,6 +26,8 @@ #include #include +#include +#include #ifdef DEBUG #define dbg_printf(fmt, args...) printf("[debug rculfhash] " fmt, ## args) -- 2.34.1