Cleanup: apply `include-what-you-use` guideline for `uint*_t`
[lttng-ust.git] / tests / test-app-ctx / hello.c
index f2859a7a13612318650abc313cafddd7c3b25e06..e9e45ec7c51db46aae588276d14085322136ac06 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#include <stdio.h>
-#include <unistd.h>
-#include <sys/mman.h>
-#include <stdarg.h>
-#include <sys/types.h>
-#include <sys/stat.h>
 #include <fcntl.h>
 #include <signal.h>
+#include <stdarg.h>
+#include <stdint.h>
+#include <stdio.h>
 #include <string.h>
-#include <urcu/tls-compat.h>
+#include <sys/mman.h>
+#include <sys/stat.h>
+#include <sys/types.h>
+#include <unistd.h>
 /*
  * Work-around inet.h missing struct mmsghdr forward declaration, with
  * triggers a warning when system files warnings are enabled.
  */
 struct mmsghdr;
 #include <arpa/inet.h>
+#include <stddef.h>
 #include <stdlib.h>
 #include <stdbool.h>
 
@@ -44,7 +45,7 @@ struct mmsghdr;
 #include <lttng/ringbuffer-config.h>
 #include <lttng/ust-context-provider.h>
 
-static DEFINE_URCU_TLS_IE(unsigned int, test_count);
+static __thread unsigned int test_count;
 
 void test_inc_count(void)
 {
This page took 0.024225 seconds and 4 git commands to generate.