X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Ftest-app-ctx%2Fhello.c;h=f2859a7a13612318650abc313cafddd7c3b25e06;hb=553bbf7f38652084ed7966c7817b8ccb372b14e1;hp=197df21e1ada8bbc1d9e1cdadfc992ae522abd0c;hpb=2982a6144602ed97dd9ec246124f1403ec7c83bc;p=lttng-ust.git diff --git a/tests/test-app-ctx/hello.c b/tests/test-app-ctx/hello.c index 197df21e..f2859a7a 100644 --- a/tests/test-app-ctx/hello.c +++ b/tests/test-app-ctx/hello.c @@ -26,6 +26,7 @@ #include #include #include +#include /* * Work-around inet.h missing struct mmsghdr forward declaration, with * triggers a warning when system files warnings are enabled. @@ -43,7 +44,7 @@ struct mmsghdr; #include #include -static __thread unsigned int test_count; +static DEFINE_URCU_TLS_IE(unsigned int, test_count); void test_inc_count(void) {