From: Mathieu Desnoyers Date: Wed, 22 Feb 2012 22:10:28 +0000 (-0500) Subject: Revert "Use ENOMSG as fallback for ENODATA on freebsd" X-Git-Tag: v2.0.0-rc2~27 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=05cbbadf100053288c7ceccb1ef4ef6763638aea;p=lttng-ust.git Revert "Use ENOMSG as fallback for ENODATA on freebsd" This reverts commit e5757a9047b04cb2fb94d9dfdf7153e963eafa95. Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust/compat.h b/liblttng-ust/compat.h index 004e60ac..37480671 100644 --- a/liblttng-ust/compat.h +++ b/liblttng-ust/compat.h @@ -55,10 +55,4 @@ void lttng_ust_getprocname(char *name) #endif -#include - -#ifndef ENODATA -#define ENODATA ENOMSG -#endif - #endif /* _UST_COMPAT_H */ diff --git a/libringbuffer/ring_buffer_frontend.c b/libringbuffer/ring_buffer_frontend.c index 56298769..ca19648f 100644 --- a/libringbuffer/ring_buffer_frontend.c +++ b/libringbuffer/ring_buffer_frontend.c @@ -53,7 +53,6 @@ #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)) diff --git a/tests/ust-basic-tracing/ust-basic-tracing.c b/tests/ust-basic-tracing/ust-basic-tracing.c index a7fa84da..967a1200 100644 --- a/tests/ust-basic-tracing/ust-basic-tracing.c +++ b/tests/ust-basic-tracing/ust-basic-tracing.c @@ -42,7 +42,6 @@ #include #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 diff --git a/tests/ust-multi-test/ust-multi-test.c b/tests/ust-multi-test/ust-multi-test.c index 814e4517..5975789f 100644 --- a/tests/ust-multi-test/ust-multi-test.c +++ b/tests/ust-multi-test/ust-multi-test.c @@ -42,7 +42,6 @@ #include #include <../../libringbuffer/backend.h> #include <../../libringbuffer/frontend.h> -#include "../../liblttng-ust/compat.h" /* For ENODATA */ #define NR_SESSIONS 4 #define NR_CHANNELS 1