diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c
index b3bce2408d..87d92557db 100644
--- a/libavformat/rtpdec.c
+++ b/libavformat/rtpdec.c
@@ -26,7 +26,6 @@
 #include "mpegts.h"
 #include "url.h"
 
-#include <unistd.h>
 #include "network.h"
 
 #include "rtpdec.h"