diff --git a/libavformat/sdp.c b/libavformat/sdp.c
index 4e07e6bc5e3b571f86d9a57c418238ea84baef1c..9c0e1a93bf45ec0192a5bf802a6748d358f0351c 100644
--- a/libavformat/sdp.c
+++ b/libavformat/sdp.c
@@ -104,7 +104,8 @@ static void resolve_destination(char *dest_addr, int size, char *type,
     freeaddrinfo(ai);
 }
 #else
-static void resolve_destination(char *dest_addr, int size)
+static void resolve_destination(char *dest_addr, int size, char *type,
+                                int type_size)
 {
 }
 #endif