Use ENOMSG as fallback for ENODATA on freebsd
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 21 Feb 2012 02:58:31 +0000 (21:58 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 22 Feb 2012 22:27:24 +0000 (17:27 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/compat.h
libringbuffer/ring_buffer_frontend.c
tests/ust-basic-tracing/ust-basic-tracing.c
tests/ust-multi-test/ust-multi-test.c

index 37480671052edcb872c58345958b7c543c2ddea4..004e60ace8d86771652405c2076f555969bd12d8 100644 (file)
@@ -55,4 +55,10 @@ void lttng_ust_getprocname(char *name)
 
 #endif
 
+#include <errno.h>
+
+#ifndef ENODATA
+#define ENODATA        ENOMSG
+#endif
+
 #endif /* _UST_COMPAT_H */
index ca19648f1d04f544d4f931bb29344fd3e43b65f4..5629876983ee56ca7d5d1c4509d45d4dca5f5f38 100644 (file)
@@ -53,6 +53,7 @@
 #include "backend.h"
 #include "frontend.h"
 #include "shm.h"
+#include "../liblttng-ust/compat.h"    /* For ENODATA */
 
 #ifndef max
 #define max(a, b)      ((a) > (b) ? (a) : (b))
index 967a120055a70a60b1783abe0a2130d1bf5e37a5..a7fa84daec6ff696c2616fcabc6ec25de580dac4 100644 (file)
@@ -42,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
index 5975789f8a95372f9fe0803bb2caa9eb0fbe0bcc..814e4517dc366295f2cf6bb990c5ac8374e3f919 100644 (file)
@@ -42,6 +42,7 @@
 #include <ust-comm.h>
 #include <../../libringbuffer/backend.h>
 #include <../../libringbuffer/frontend.h>
+#include "../../liblttng-ust/compat.h" /* For ENODATA */
 
 #define NR_SESSIONS    4
 #define NR_CHANNELS    1
This page took 0.027366 seconds and 4 git commands to generate.