fix: include 'sys/endian.h' on FreeBSD
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 14 Apr 2021 15:01:57 +0000 (11:01 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 15 Apr 2021 12:35:36 +0000 (08:35 -0400)
We need to include 'sys/endian.h' on FreeBSD to use BYTE_ORDER.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I9f6e9d522e3857304fb9556098a775d1f0d35ef9

doc/examples/rculfhash/jhash.h

index 5e8b288231389a0473d815f904d7ff1033745dc9..fc3928e5d3deae77110bc89479f81fa94345e149 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef _JHASH_H
 #define _JHASH_H
 
+#if defined(__FreeBSD__)
+#include <sys/endian.h>
+#endif
+
 /*
  * jhash.h
  *
This page took 0.025334 seconds and 4 git commands to generate.