X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=liblttng-ust-libc-wrapper%2Flttng-ust-pthread.c;h=1e65207f8bc007e69539e3220cca7a89f1e69d67;hb=fb54defd7e47e106bdf3b7eb07d53f0aba0525ec;hp=6554a47afe7057f3b8c2c21147574c2f77d5ad09;hpb=553bbf7f38652084ed7966c7817b8ccb372b14e1;p=lttng-ust.git diff --git a/liblttng-ust-libc-wrapper/lttng-ust-pthread.c b/liblttng-ust-libc-wrapper/lttng-ust-pthread.c index 6554a47a..1e65207f 100644 --- a/liblttng-ust-libc-wrapper/lttng-ust-pthread.c +++ b/liblttng-ust-libc-wrapper/lttng-ust-pthread.c @@ -16,14 +16,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#define _GNU_SOURCE /* * Do _not_ define _LGPL_SOURCE because we don't want to create a * circular dependency loop between this malloc wrapper, liburcu and * libc. */ #include -#include #include #include @@ -32,7 +30,7 @@ #define TP_IP_PARAM ip #include "ust_pthread.h" -static DEFINE_URCU_TLS_IE(int, thread_in_trace); +static __thread int thread_in_trace; int pthread_mutex_lock(pthread_mutex_t *mutex) {