diff --git a/src/shared/util.h b/src/shared/util.h
index ce57b53..da99a4c 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -17,6 +17,7 @@
 #include <string.h>
 #include <sys/types.h>
 #include <sys/uio.h>
+#include <endian.h>
 
 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
 #define BIT(n)  (1 << (n))
