X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=include%2Furcu%2Fflavor.h;h=93da38f7d449c42107ef65a09a6c909f6e75926f;hp=411fefbe3173c67615f046e6b61bbd15cb3e7178;hb=ce28e67a534dcf0b68ccad2218e5a2e552e6e469;hpb=4477a87021ffbfbfdb2a2084d05a084171343d36 diff --git a/include/urcu/flavor.h b/include/urcu/flavor.h index 411fefb..93da38f 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); @@ -77,9 +79,13 @@ const struct rcu_flavor_struct x = { \ } #define DEFINE_RCU_FLAVOR_ALIAS(x, y) _DEFINE_RCU_FLAVOR_ALIAS(x, y) +#ifdef __APPLE__ +#define _DEFINE_RCU_FLAVOR_ALIAS(x, y) +#else #define _DEFINE_RCU_FLAVOR_ALIAS(x, y) \ __attribute__((alias(#x))) \ extern const struct rcu_flavor_struct y; +#endif extern const struct rcu_flavor_struct rcu_flavor;