diff --git a/include/vlc_input.h b/include/vlc_input.h
index 903cbb86de37fc7894433c60b7c3a835f739bb90..4e5ebfd05a56d9409faba833d1cbb429def2bfc4 100644
--- a/include/vlc_input.h
+++ b/include/vlc_input.h
@@ -38,7 +38,6 @@
 #include <vlc_epg.h>
 #include <vlc_input_item.h>
 #include <vlc_vout.h>
-#include <vlc_vout_osd.h>
 
 #include <string.h>
 
diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c
index c3d713df964d7585d0e6e087e05f05dd436606c5..d85a90caf276cd55f8cb902ae2cf4c1010c033cc 100644
--- a/modules/control/hotkeys.c
+++ b/modules/control/hotkeys.c
@@ -40,6 +40,7 @@
 #include <vlc_actions.h>
 #include <vlc_spu.h>
 #include <vlc_executor.h>
+#include <vlc_vout_osd.h>
 #include "math.h"
 
 struct intf_sys_t
diff --git a/src/player/osd.c b/src/player/osd.c
index 33783c9104d04271ce7b9cf23c71fd9d648c0b4c..cdcdbb64b05022efae029e0d0a45d16d429d9ee6 100644
--- a/src/player/osd.c
+++ b/src/player/osd.c
@@ -26,6 +26,7 @@
 
 #include <vlc_common.h>
 #include <vlc_memstream.h>
+#include <vlc_vout_osd.h>
 #include "player.h"
 #include "input/resource.h"
 
diff --git a/src/player/player.c b/src/player/player.c
index 74c4de7ae5ce97d05edc50d387d69a3f6c97b39c..2c8f311eeb6004b41a579186ad8d7c613a35fbbc 100644
--- a/src/player/player.c
+++ b/src/player/player.c
@@ -32,6 +32,7 @@
 #include <vlc_decoder.h>
 #include <vlc_memstream.h>
 #include <vlc_http.h>
+#include <vlc_vout_osd.h>
 
 #include "../libvlc.h"
 #include "input/resource.h"