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.11.4~19 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=745411d4050c2e9b04198b6668db018b2c732467;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 *