diff --git a/pqueue.h b/pqueue.h
index c37ba7b..ae4cc6a 100644
--- a/pqueue.h
+++ b/pqueue.h
@@ -3,6 +3,7 @@
 
 #include <time.h>
 #include <sys/time.h>
+#include <sys/types.h>
 
 /* wait this many seconds for missing packets before forgetting about them */
 #define DEFAULT_PACKET_TIMEOUT 0.3
