mirror of
https://git.freebsd.org/ports.git
synced 2025-07-01 01:20:31 -04:00
LTTng stands for Linux Trace Toolkit: next generation. It's a modern toolkit for tracing Linux (And now FreeBSD, only userspace now) programs. PR: 216142 Submitted by: mmokhi Reported by: mmokhi Reviewed by: feld, mat Approved by: feld, mat (mentors) Differential Revision: https://reviews.freebsd.org/D9200
22 lines
550 B
C
22 lines
550 B
C
--- liblttng-ust-ctl/ustctl.c.orig 2016-11-29 01:46:24 UTC
|
|
+++ liblttng-ust-ctl/ustctl.c
|
|
@@ -23,7 +23,19 @@
|
|
#include <lttng/ust-abi.h>
|
|
#include <lttng/ust-events.h>
|
|
#include <sys/mman.h>
|
|
+#if defined(__FreeBSD__)
|
|
+#include <sys/types.h>
|
|
+#include <sys/endian.h>
|
|
+#define bswap_16 bswap16
|
|
+#define bswap_32 bswap32
|
|
+#define bswap_64 bswap64
|
|
+#define __bswap_16 bswap16
|
|
+#define __bswap_32 bswap32
|
|
+#define __bswap_64 bswap64
|
|
+#define NT_GNU_BUILD_ID 3
|
|
+#else
|
|
#include <byteswap.h>
|
|
+#endif
|
|
|
|
#include <usterr-signal-safe.h>
|
|
#include <ust-comm.h>
|