diff --git a/libavdevice/bktr.c b/libavdevice/bktr.c
index d0122d38d63e828aecbc5bcc956c3d615487e9c1..a147d389532f233ec12c0f886936b3ea397e8ec5 100644
--- a/libavdevice/bktr.c
+++ b/libavdevice/bktr.c
@@ -29,6 +29,7 @@
 #include "libavutil/log.h"
 #include "libavutil/opt.h"
 #include "libavutil/parseutils.h"
+#include "libavutil/time.h"
 #if HAVE_DEV_BKTR_IOCTL_METEOR_H && HAVE_DEV_BKTR_IOCTL_BT848_H
 # include <dev/bktr/ioctl_meteor.h>
 # include <dev/bktr/ioctl_bt848.h>