summaryrefslogtreecommitdiff
path: root/src/commonlib/bsd/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/commonlib/bsd/include')
-rw-r--r--src/commonlib/bsd/include/commonlib/bsd/sysincludes.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/commonlib/bsd/include/commonlib/bsd/sysincludes.h b/src/commonlib/bsd/include/commonlib/bsd/sysincludes.h
new file mode 100644
index 0000000000..3a87cda1c4
--- /dev/null
+++ b/src/commonlib/bsd/include/commonlib/bsd/sysincludes.h
@@ -0,0 +1,6 @@
+/* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-only */
+#if defined(__FreeBSD__)
+#include <sys/endian.h>
+#else
+#include <endian.h>
+#endif