diff --git a/misc/pcap.c b/misc/pcap.c
index 125ea24..fa24299 100644
--- a/misc/pcap.c
+++ b/misc/pcap.c
@@ -16,6 +16,7 @@
  * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
+#include <sys/param.h>
 #include <netinet/in.h>
 #include <resolv.h>
 #include <pcap.h>
