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>
Tue, 21 Feb 2012 02:58:31 +0000 (21:58 -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 91a910a689b9d1841ed73d0d7c7860af905f5e60..ae2c8816715b195825e9b68a984d9e34b8ceeb42 100644 (file)
@@ -40,6 +40,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 07cd815c486206a3b7ddf5bcbc1e9f070790fd1b..068f59cf643c25816f6b1f81106a3cd42f9ebae7 100644 (file)
@@ -40,6 +40,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.033719 seconds and 4 git commands to generate.