Use ENOMSG as fallback for ENODATA on freebsd
[lttng-ust.git] / libringbuffer / ring_buffer_frontend.c
index cb9446ea45557dbe9b68c53e97344cf304b5c975..5629876983ee56ca7d5d1c4509d45d4dca5f5f38 100644 (file)
@@ -38,6 +38,7 @@
  * Dual LGPL v2.1/GPL v2 license.
  */
 
+#define _GNU_SOURCE
 #include <sys/types.h>
 #include <sys/mman.h>
 #include <sys/stat.h>
@@ -52,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))
This page took 0.023326 seconds and 4 git commands to generate.