explicitly include <endian.h> for be32toh()
diff --git a/lib/pack_create.c b/lib/pack_create.c
index 36b6b12..3b6af38 100644
--- a/lib/pack_create.c
+++ b/lib/pack_create.c
@@ -22,6 +22,7 @@
#include <sys/stat.h>
#include <sys/time.h>
+#include <endian.h>
#include <stdint.h>
#include <imsg.h>
#include <stdio.h>