diff --git a/package/network/utils/iwcap/src/iwcap.c b/package/network/utils/iwcap/src/iwcap.c
index a71dca23206b668ad1b88017e3ee031f3d3adbcd..d335e500e8aea05d78b82e130782c490c97967e4 100644
--- a/package/network/utils/iwcap/src/iwcap.c
+++ b/package/network/utils/iwcap/src/iwcap.c
@@ -26,6 +26,7 @@
 #include <signal.h>
 #include <syslog.h>
 #include <errno.h>
+#include <byteswap.h>
 #include <sys/stat.h>
 #include <sys/time.h>
 #include <sys/ioctl.h>