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 411fefbe3173c67615f046e6b61bbd15cb3e7178..d2d19f6c80df002439bfc6f8331c82b4126bee09 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 0789aa52be50dfe168379402bb438fbed4faa20e..69608794a7628c8f409199c63153d8bf0052edf7 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 0f8df97c0b6305e41cc533384586698d131bf0d7..d29a9232c03e6c42c844d8bfaaf3f63e588c5473 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.031429 seconds and 4 git commands to generate.