From: Michael Jeanson Date: Wed, 14 Apr 2021 15:01:57 +0000 (-0400) Subject: fix: include 'sys/endian.h' on FreeBSD X-Git-Tag: v0.12.3~19 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=81094c75ea26dff1a90d96a4710873bf566ff7ec;p=userspace-rcu.git fix: include 'sys/endian.h' on FreeBSD We need to include 'sys/endian.h' on FreeBSD to use BYTE_ORDER. Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers Change-Id: I9f6e9d522e3857304fb9556098a775d1f0d35ef9 --- diff --git a/doc/examples/rculfhash/jhash.h b/doc/examples/rculfhash/jhash.h index 5e8b288..fc3928e 100644 --- a/doc/examples/rculfhash/jhash.h +++ b/doc/examples/rculfhash/jhash.h @@ -1,6 +1,10 @@ #ifndef _JHASH_H #define _JHASH_H +#if defined(__FreeBSD__) +#include +#endif + /* * jhash.h *