#include <sys/types.h>
#include <stdio.h>
#include <assert.h>
+#include <malloc.h>
+
#include <urcu/system.h>
#include <urcu/uatomic.h>
#include <urcu/compiler.h>
#include <urcu/tls-compat.h>
#include <urcu/arch.h>
+
+#include <lttng/ust-libc-wrapper.h>
+
#include <ust-helper.h>
#include "ust-compat.h"
void ust_malloc_spin_lock(pthread_mutex_t *lock)
__attribute__((unused));
static
-void ust_malloc_spin_lock(pthread_mutex_t *lock)
+void ust_malloc_spin_lock(pthread_mutex_t *lock __attribute__((unused)))
{
/*
* The memory barrier within cmpxchg takes care of ordering
void ust_malloc_spin_unlock(pthread_mutex_t *lock)
__attribute__((unused));
static
-void ust_malloc_spin_unlock(pthread_mutex_t *lock)
+void ust_malloc_spin_unlock(pthread_mutex_t *lock __attribute__((unused)))
{
/*
* Ensure memory accesses within the critical section do not
}
static
-void static_free(void *ptr)
+void static_free(void *ptr __attribute__((unused)))
{
/* no-op. */
}