#include <unistd.h>
#include <stdio.h>
#include <assert.h>
-#include <sys/syscall.h>
#include <sched.h>
#include <errno.h>
#include <urcu/arch.h>
+#ifdef __linux__
+#include <syscall.h>
+#endif
+
/* hardcoded number of CPUs */
#define NR_CPUS 16384
for (;;) {
struct cds_lfs_node_rcu *node;
- rcu_read_lock();
node = cds_lfs_pop_rcu(&s);
- rcu_read_unlock();
if (node) {
defer_rcu(free, node);
nr_successful_dequeues++;