Use ENOMSG as fallback for ENODATA on freebsd
[lttng-ust.git] / tests / ust-basic-tracing / ust-basic-tracing.c
index da2852f893b41aaf47879bf0397a9693cc5e21e8..a7fa84daec6ff696c2616fcabc6ec25de580dac4 100644 (file)
@@ -19,6 +19,7 @@
  */
 
 #define _LARGEFILE64_SOURCE
+#define _GNU_SOURCE
 #include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -28,6 +29,8 @@
 #include <sys/wait.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <sys/time.h>
+#include <sys/resource.h>
 #include <fcntl.h>
 #include <sys/mman.h>
 #include <limits.h>
@@ -39,6 +42,7 @@
 #include <ust-comm.h>
 #include "../../libringbuffer/backend.h"
 #include "../../libringbuffer/frontend.h"
+#include "../../liblttng-ust/compat.h" /* For ENODATA */
 
 #define MAX_NR_STREAMS 64
 #define MAX_NR_EVENTS  128
This page took 0.024311 seconds and 4 git commands to generate.