Add FreeBSD compat layer for endian.h
[lttng-ust.git] / liblttng-ust / ltt-events.c
index b6d4f9b51f6f50bdea1f3b2e5eeed2299a143307..e42b6de64314c914a1c67908f128e628bd2b1ad1 100644 (file)
@@ -10,7 +10,6 @@
 
 #define _GNU_SOURCE
 #include <stdio.h>
-#include <endian.h>
 #include <urcu/list.h>
 #include <urcu/hlist.h>
 #include <pthread.h>
@@ -23,6 +22,7 @@
 #include <inttypes.h>
 #include <time.h>
 #include <sys/prctl.h>
+#include <lttng/ust-endian.h>
 #include "clock.h"
 
 #include <urcu-bp.h>
@@ -493,7 +493,7 @@ int ltt_event_create(struct ltt_channel *chan,
        struct ltt_event *event;
        int ret = 0;
 
-       if (chan->used_event_id == -1UL) {
+       if (chan->used_event_id == -1U) {
                ret = -ENOMEM;
                goto full;
        }
This page took 0.023655 seconds and 4 git commands to generate.