summaryrefslogtreecommitdiffstats
path: root/compat
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2019-03-03 23:45:16 +0000
committerRoy Marples <roy@marples.name>2019-03-03 23:45:16 +0000
commit4828cdf228508fa725bef63da439eaf9be4eafba (patch)
tree6e3fea6f0bc176a77511acfd7afbcb9557560162 /compat
parenta247f8011958ace17e60e4ad139fad142651c6e7 (diff)
downloaddhcpcd-4828cdf228508fa725bef63da439eaf9be4eafba.tar.xz
FreeBSD: Fix compile of rbtree.h
Diffstat (limited to 'compat')
-rw-r--r--compat/rbtree.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/compat/rbtree.h b/compat/rbtree.h
index 5951e6d0..c570ed4a 100644
--- a/compat/rbtree.h
+++ b/compat/rbtree.h
@@ -39,7 +39,11 @@
#include <inttypes.h>
#endif
#include "queue.h"
+#if !defined(__linux__) && !defined(__QNX__) && !defined(__sun)
+#include <sys/endian.h>
+#else
#include "endian.h"
+#endif
__BEGIN_DECLS