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.13.0~16 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8eefcfaf31a34a3301619bbb99d080bfcf1a972f;p=urcu.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 *