diff --git a/src/android/thread.c b/src/android/thread.c
index e1e449d0cd310856eefdd70e0b4646ea50fa364e..6a1829797965200309b2c025fb53fe0c050e7afb 100644
--- a/src/android/thread.c
+++ b/src/android/thread.c
@@ -31,7 +31,7 @@
 #include <vlc_common.h>
 #include <vlc_threads.h>
 
-#include "libvlc.h"
+#include "../libvlc.h"
 #include <signal.h>
 #include <errno.h>
 #include <stdatomic.h>
diff --git a/src/audio_output/dec.c b/src/audio_output/dec.c
index c7b77f66a4aa997885d9aa5ee8ad1ff4d34b88cf..f7ecb756a4e6857d9fac6bf7353313d614d66f7d 100644
--- a/src/audio_output/dec.c
+++ b/src/audio_output/dec.c
@@ -37,7 +37,7 @@
 
 #include "aout_internal.h"
 #include "clock/clock.h"
-#include "libvlc.h"
+#include "../libvlc.h"
 
 #define BLOCK_FLAG_CORE_PRIVATE_FILTERED (1 << BLOCK_FLAG_CORE_PRIVATE_SHIFT)
 
diff --git a/src/audio_output/filters.c b/src/audio_output/filters.c
index 86c3c2bfe49a2397b41449dbca728a0e01d93015..32f146d9809f7dd7b99ce3951c93fa4f4d0ccf7d 100644
--- a/src/audio_output/filters.c
+++ b/src/audio_output/filters.c
@@ -37,7 +37,7 @@
 #include <vlc_modules.h>
 #include <vlc_aout.h>
 #include <vlc_filter.h>
-#include <libvlc.h>
+#include "../libvlc.h"
 #include "aout_internal.h"
 #include "../video_output/vout_internal.h" /* for vout_Request */
 
diff --git a/src/audio_output/output.c b/src/audio_output/output.c
index 6c5f577834bfe2f1382a714477ea098a4cb10b88..64d80450e07d8b3b93357357d56ae846ef8cf050 100644
--- a/src/audio_output/output.c
+++ b/src/audio_output/output.c
@@ -33,7 +33,7 @@
 #include <vlc_modules.h>
 #include <vlc_atomic.h>
 
-#include "libvlc.h"
+#include "../libvlc.h"
 #include "aout_internal.h"
 
 typedef struct aout_dev
diff --git a/src/audio_output/volume.c b/src/audio_output/volume.c
index c89bb426a488a30871ee0b4d268e2302be455c75..dce18d6b223c43f89d61079122cf5b932a91056d 100644
--- a/src/audio_output/volume.c
+++ b/src/audio_output/volume.c
@@ -28,7 +28,7 @@
 #include <math.h>
 
 #include <vlc_common.h>
-#include <libvlc.h>
+#include "../libvlc.h"
 #include <vlc_modules.h>
 #include <vlc_aout.h>
 #include <vlc_aout_volume.h>
diff --git a/src/config/chain.c b/src/config/chain.c
index c2fa4522f88624081b9b85e3c39fdf22b7f050c6..33ca2de8217d81a4088b9fd3ef9fec497cb593b2 100644
--- a/src/config/chain.c
+++ b/src/config/chain.c
@@ -31,7 +31,7 @@
 #endif
 
 #include <vlc_common.h>
-#include "libvlc.h"
+#include "../libvlc.h"
 #include <vlc_charset.h>
 #include <vlc_plugin.h>
 
diff --git a/src/config/help.c b/src/config/help.c
index f175000503d9929ff0b678eec6ed63ee52cd0dca..8c6af1bbee5cff695b01f78c814cfca655291b6f 100644
--- a/src/config/help.c
+++ b/src/config/help.c
@@ -38,7 +38,7 @@
 #include "ansi_term.h"
 #include "modules/modules.h"
 #include "config/configuration.h"
-#include "libvlc.h"
+#include "../libvlc.h"
 
 #if defined( _WIN32 )
 # define wcwidth(cp) ((void)(cp), 1) /* LOL */
diff --git a/src/input/decoder.c b/src/input/decoder.c
index b52457b878a715ec584bf052c51070a3a98a6c95..a496641f068f4d2ace2258ba3177bf539a5f2b45 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -52,7 +52,7 @@
 #include "input_internal.h"
 #include "decoder.h"
 #include "resource.h"
-#include "libvlc.h"
+#include "../libvlc.h"
 
 #include "../video_output/vout_internal.h"
 
diff --git a/src/input/decoder_device.c b/src/input/decoder_device.c
index dc74f6b058674833c352123874b696d231c2643a..a7ceb56faef17ebb6fe4225f5534a4abe38c994a 100644
--- a/src/input/decoder_device.c
+++ b/src/input/decoder_device.c
@@ -25,7 +25,7 @@
 #include <vlc_common.h>
 #include <vlc_codec.h>
 #include <vlc_modules.h>
-#include "libvlc.h"
+#include "../libvlc.h"
 
 struct vlc_decoder_device_priv
 {
diff --git a/src/input/decoder_helpers.c b/src/input/decoder_helpers.c
index 5b8425f776dc990460e73e1af926c0856389327a..007c1335c495169df622ddf746fdd886a907ba70 100644
--- a/src/input/decoder_helpers.c
+++ b/src/input/decoder_helpers.c
@@ -32,7 +32,7 @@
 #include <vlc_meta.h>
 #include <vlc_modules.h>
 #include <vlc_picture.h>
-#include "libvlc.h"
+#include "../libvlc.h"
 
 void decoder_Init( decoder_t *p_dec, es_format_t *restrict fmt_in, const es_format_t *restrict p_fmt )
 {
diff --git a/src/input/demux.c b/src/input/demux.c
index 7506bff0d89ec8e091201ef05746a9bf1ca25d20..13d3b5689d2be1841cb73e2e9585af77a86974c2 100644
--- a/src/input/demux.c
+++ b/src/input/demux.c
@@ -28,7 +28,7 @@
 #include <limits.h>
 
 #include "demux.h"
-#include <libvlc.h>
+#include "../libvlc.h"
 #include <vlc_codec.h>
 #include <vlc_configuration.h>
 #include <vlc_meta.h>
diff --git a/src/input/input_interface.h b/src/input/input_interface.h
index 81ee45e50f61b0f35d3789c7722592d584fac405..c9fc168e85ce9a855b0b163c65594f5d983fe285 100644
--- a/src/input/input_interface.h
+++ b/src/input/input_interface.h
@@ -24,7 +24,7 @@
 #define LIBVLC_INPUT_INTERFACE_H 1
 
 #include <vlc_input.h>
-#include <libvlc.h>
+#include "../libvlc.h"
 
 /**********************************************************************
  * Item metadata
diff --git a/src/input/stream.c b/src/input/stream.c
index 07f568bea764887e38e909f2816a375c5e70fb3c..af5475be9d409012b71db266b701dfa1d6fd8e06 100644
--- a/src/input/stream.c
+++ b/src/input/stream.c
@@ -40,7 +40,7 @@
 #include <vlc_charset.h>
 #include <vlc_stream_extractor.h>
 
-#include <libvlc.h>
+#include "../libvlc.h"
 #include "stream.h"
 #include "mrl_helpers.h"
 
diff --git a/src/input/stream_extractor.c b/src/input/stream_extractor.c
index 0feed444b2531b1c6da35cc8dbb652d6dfe03f68..449ab0cd6c6a02a46276db2c5786551acb531aa5 100644
--- a/src/input/stream_extractor.c
+++ b/src/input/stream_extractor.c
@@ -32,7 +32,7 @@
 #include <vlc_modules.h>
 #include <vlc_url.h>
 #include <vlc_memstream.h>
-#include <libvlc.h>
+#include "../libvlc.h"
 #include <assert.h>
 
 #include "stream.h"
diff --git a/src/input/stream_filter.c b/src/input/stream_filter.c
index 5bdfab815fcee369422ae891c607ce9caf883eb4..c2a45f865816df11bc57b3f9d1fae1449c82e34e 100644
--- a/src/input/stream_filter.c
+++ b/src/input/stream_filter.c
@@ -27,7 +27,7 @@
 #include <vlc_common.h>
 #include <vlc_stream.h>
 #include <vlc_modules.h>
-#include <libvlc.h>
+#include "../libvlc.h"
 
 #include <assert.h>
 
diff --git a/src/interface/dialog.c b/src/interface/dialog.c
index c8c1efdd3c6e43344916dc7c71c04c591840a3fb..234c9e354dbc016e7c2bae683f3db719b8a69ff1 100644
--- a/src/interface/dialog.c
+++ b/src/interface/dialog.c
@@ -32,7 +32,7 @@
 #include <vlc_interrupt.h>
 #include <vlc_extensions.h>
 #include <assert.h>
-#include "libvlc.h"
+#include "../libvlc.h"
 
 struct vlc_dialog_provider
 {
diff --git a/src/interface/interface.c b/src/interface/interface.c
index a8b130adc01bc209cd4e627eb58fb7d713a12b84..7739769b83d2fc5ae179d1fad3d88f5fae6e4400 100644
--- a/src/interface/interface.c
+++ b/src/interface/interface.c
@@ -43,7 +43,7 @@
 #include <vlc_modules.h>
 #include <vlc_interface.h>
 #include <vlc_playlist.h>
-#include "libvlc.h"
+#include "../libvlc.h"
 #include "../lib/libvlc_internal.h"
 
 static int AddIntfCallback( vlc_object_t *, char const *,
diff --git a/src/linux/dirs.c b/src/linux/dirs.c
index f5dbdaaf2c07dee775c2f3b6c833fa7296ce9217..926784cac51bab6a04e162ef0cfdb914c12242bb 100644
--- a/src/linux/dirs.c
+++ b/src/linux/dirs.c
@@ -28,7 +28,7 @@
 #include <linux/limits.h>
 
 #include <vlc_common.h>
-#include "libvlc.h"
+#include "../libvlc.h"
 #include "config/configuration.h"
 
 static char *config_GetLibDirRaw(void)
diff --git a/src/media_source/media_source.c b/src/media_source/media_source.c
index db419fd688a76562d5fed78978a689313797ff08..f2e4abf6dc0ee65924dd4b0d7c64babad78332dc 100644
--- a/src/media_source/media_source.c
+++ b/src/media_source/media_source.c
@@ -29,7 +29,7 @@
 #include <vlc_playlist.h>
 #include <vlc_services_discovery.h>
 #include <vlc_vector.h>
-#include "libvlc.h"
+#include "../libvlc.h"
 
 #ifdef TEST_MEDIA_SOURCE
 #define vlc_module_name "test"
diff --git a/src/media_source/media_tree.c b/src/media_source/media_tree.c
index 3358bf24762795b908a088274e95a953971d2e2c..64af5635e99cc078fb5dcceb0e44151f35fe0a7e 100644
--- a/src/media_source/media_tree.c
+++ b/src/media_source/media_tree.c
@@ -31,7 +31,7 @@
 #include <vlc_input_item.h>
 #include <vlc_threads.h>
 #include <vlc_preparser.h>
-#include "libvlc.h"
+#include "../libvlc.h"
 
 struct vlc_media_tree_listener_id
 {
diff --git a/src/misc/actions.c b/src/misc/actions.c
index d572324c550926077875ccdec176314c2cbdea64..7fe3b4bbbc777386e96fea6a104a832d10a69266 100644
--- a/src/misc/actions.c
+++ b/src/misc/actions.c
@@ -40,7 +40,7 @@
 #include <vlc_common.h>
 #include <vlc_actions.h>
 #include <vlc_charset.h>
-#include "libvlc.h"
+#include "../libvlc.h"
 
 static const struct key_descriptor
 {
diff --git a/src/misc/addons.c b/src/misc/addons.c
index b17a1f96bee66f2214564459ca38b1c462ac3ac5..6fb2a59e75d4928f0f219bcd3ab3935d37f7ed0c 100644
--- a/src/misc/addons.c
+++ b/src/misc/addons.c
@@ -28,7 +28,7 @@
 #include <vlc_modules.h>
 #include <vlc_arrays.h>
 #include <vlc_interrupt.h>
-#include "libvlc.h"
+#include "../libvlc.h"
 
 #include <vlc_addons.h>
 
diff --git a/src/misc/cpu.c b/src/misc/cpu.c
index b2554944547d09e3e1432552c0719620a0898cc0..37593761454fcf0bd841b4c07fed0ccf70c3411a 100644
--- a/src/misc/cpu.c
+++ b/src/misc/cpu.c
@@ -35,7 +35,7 @@
 #include <vlc_cpu.h>
 #include <vlc_memstream.h>
 #include <vlc_modules.h>
-#include "libvlc.h"
+#include "../libvlc.h"
 
 #include <assert.h>
 
diff --git a/src/misc/executor.c b/src/misc/executor.c
index db1e4dcaa552527250d00e8ca0ccd2a01c1097e2..c0bc8b907d588ccfc0a48223a75bbdc12f38ca8e 100644
--- a/src/misc/executor.c
+++ b/src/misc/executor.c
@@ -27,7 +27,7 @@
 #include <vlc_atomic.h>
 #include <vlc_list.h>
 #include <vlc_threads.h>
-#include "libvlc.h"
+#include "../libvlc.h"
 
 /**
  * An executor can spawn several threads.
diff --git a/src/misc/exit.c b/src/misc/exit.c
index d6cb0ad407eaa154eecb8c78bd173a96b6502c0a..6cd63aef74f1b604026b6104487268baeedd0f5f 100644
--- a/src/misc/exit.c
+++ b/src/misc/exit.c
@@ -24,7 +24,7 @@
 
 #include <vlc_common.h>
 #include <vlc_interface.h>
-#include "libvlc.h"
+#include "../libvlc.h"
 #include "../lib/libvlc_internal.h"
 
 void vlc_ExitInit( vlc_exit_t *exit )
diff --git a/src/misc/fifo.c b/src/misc/fifo.c
index d356704c79701810f56fc497f7d78e8539730410..d58a1a9c8074d08293759e67329552bc0119a914 100644
--- a/src/misc/fifo.c
+++ b/src/misc/fifo.c
@@ -30,7 +30,7 @@
 
 #include <vlc_common.h>
 #include <vlc_block.h>
-#include "libvlc.h"
+#include "../libvlc.h"
 
 /**
  * Internal state for block queues
diff --git a/src/misc/filter.c b/src/misc/filter.c
index b781f4df70d2f8ef4bbbe4d8db19aa6e770235ae..79ee91f706b851fdb176ed285c7ac0f9fbb2d846 100644
--- a/src/misc/filter.c
+++ b/src/misc/filter.c
@@ -28,7 +28,7 @@
 
 #include <vlc_common.h>
 #include <vlc_configuration.h>
-#include <libvlc.h>
+#include "../libvlc.h"
 #include <vlc_filter.h>
 #include <vlc_modules.h>
 #include "../misc/variables.h"
diff --git a/src/misc/filter_chain.c b/src/misc/filter_chain.c
index ec63e59034f52f9c023cf47baa6ba6a2e4e70f3e..7daff817aabbc470812c4cb93f1a95a268aba4c1 100644
--- a/src/misc/filter_chain.c
+++ b/src/misc/filter_chain.c
@@ -30,7 +30,7 @@
 #include <vlc_modules.h>
 #include <vlc_mouse.h>
 #include <vlc_spu.h>
-#include <libvlc.h>
+#include "../libvlc.h"
 #include <assert.h>
 
 module_t *vlc_filter_LoadModule(filter_t *p_filter, const char *capability,
diff --git a/src/misc/fingerprinter.c b/src/misc/fingerprinter.c
index b41fb41ce3c0c8e74c2f69b04943bd9848136f28..18e79956e993f9b717f962e1c840a3129870e85f 100644
--- a/src/misc/fingerprinter.c
+++ b/src/misc/fingerprinter.c
@@ -25,7 +25,7 @@
 #include <vlc_common.h>
 #include <vlc_fingerprinter.h>
 #include <vlc_modules.h>
-#include "libvlc.h"
+#include "../libvlc.h"
 
 fingerprinter_thread_t *fingerprinter_Create( vlc_object_t *p_this )
 {
diff --git a/src/misc/image.c b/src/misc/image.c
index c8cb5cc8f6a35f4d060f590d9239c59db3006f7b..c43948d115666fc43ca9167d8243999e2830d036 100644
--- a/src/misc/image.c
+++ b/src/misc/image.c
@@ -45,7 +45,7 @@
 #include <vlc_stream.h>
 #include <vlc_fs.h>
 #include <vlc_sout.h>
-#include <libvlc.h>
+#include "../libvlc.h"
 #include <vlc_modules.h>
 
 struct decoder_owner
diff --git a/src/misc/interrupt.c b/src/misc/interrupt.c
index 864624e18c12d30a73b5096d2139d2555586dee3..bb91cf51fe99ba4e1322ec9eb44960678bca7061 100644
--- a/src/misc/interrupt.c
+++ b/src/misc/interrupt.c
@@ -47,7 +47,7 @@
 #include <vlc_network.h> /* vlc_accept */
 
 #include "interrupt.h"
-#include "libvlc.h"
+#include "../libvlc.h"
 
 static thread_local vlc_interrupt_t *vlc_interrupt_var;
 
diff --git a/src/misc/keystore.c b/src/misc/keystore.c
index 02ebcfdba16a80c976d2c58936cfaff754387b2d..872e30c83a5381efbb2f315c8dcd2b4ac90f2966 100644
--- a/src/misc/keystore.c
+++ b/src/misc/keystore.c
@@ -28,7 +28,7 @@
 #include <vlc_modules.h>
 #include <vlc_url.h>
 #include <vlc_interrupt.h>
-#include <libvlc.h>
+#include "../libvlc.h"
 
 #include <assert.h>
 #include <limits.h>
diff --git a/src/misc/medialibrary.c b/src/misc/medialibrary.c
index 101d819b53a46fe7bab2aec28f440160de4e317b..1193b86a8689aa50fd7f2e833ce1bef41ad8b46d 100644
--- a/src/misc/medialibrary.c
+++ b/src/misc/medialibrary.c
@@ -27,7 +27,7 @@
 #include <vlc_modules.h>
 #include <vlc_list.h>
 #include <vlc_threads.h>
-#include <libvlc.h>
+#include "../libvlc.h"
 
 #include <assert.h>
 
diff --git a/src/misc/objres.c b/src/misc/objres.c
index b70272392e683a8f9426df33e1fc342dea515053..157a99b6ea055c0ae0b946bba032b8ca86c1e820 100644
--- a/src/misc/objres.c
+++ b/src/misc/objres.c
@@ -31,7 +31,7 @@
 
 #include <vlc_common.h>
 
-#include "libvlc.h"
+#include "../libvlc.h"
 #include "variables.h"
 
 struct vlc_res
diff --git a/src/misc/probe.c b/src/misc/probe.c
index 08fe54194dfddba452382cdf1e5fc86e795f1b68..c3f30d2481b844d536eb5356fd19f811c585f415 100644
--- a/src/misc/probe.c
+++ b/src/misc/probe.c
@@ -25,7 +25,7 @@
 #include <vlc_common.h>
 #include <vlc_probe.h>
 #include <vlc_modules.h>
-#include "libvlc.h"
+#include "../libvlc.h"
 
 #undef vlc_probe
 void *vlc_probe (vlc_object_t *obj,
diff --git a/src/misc/renderer_discovery.c b/src/misc/renderer_discovery.c
index ff109b53f015e93752309f7b73c7b873582ac212..cb0c06319b32fb372b0e6f675eac42e3ec966661 100644
--- a/src/misc/renderer_discovery.c
+++ b/src/misc/renderer_discovery.c
@@ -30,7 +30,7 @@
 #include <vlc_renderer_discovery.h>
 #include <vlc_probe.h>
 #include <vlc_modules.h>
-#include <libvlc.h>
+#include "../libvlc.h"
 
 struct vlc_renderer_item_t
 {
diff --git a/src/misc/threads.c b/src/misc/threads.c
index e5dfc76f7822ea6b8a8d7ad19e6bafb9ed0905d6..f3a589fa680704463fb21160c2290236f37ce6c0 100644
--- a/src/misc/threads.c
+++ b/src/misc/threads.c
@@ -30,7 +30,7 @@
 #include <vlc_common.h>
 #include <vlc_threads.h>
 #include <vlc_atomic.h>
-#include "libvlc.h"
+#include "../libvlc.h"
 #include "threads.h"
 
 /* <stdatomic.h> types cannot be used in the C++ view of <vlc_threads.h> */
diff --git a/src/misc/variables.c b/src/misc/variables.c
index 21b5cc3471496581283b8883c2e22f3ec25000eb..1ef86099f63600e79bce2ba7d20b28be16906155 100644
--- a/src/misc/variables.c
+++ b/src/misc/variables.c
@@ -38,7 +38,7 @@
 #include <vlc_common.h>
 #include <vlc_arrays.h>
 #include <vlc_charset.h>
-#include "libvlc.h"
+#include "../libvlc.h"
 #include "variables.h"
 #include "config/configuration.h"
 
diff --git a/src/modules/bank.c b/src/modules/bank.c
index ab47f8cec39b3127ecfd608aa14d43bf26d18f26..db92029cfc8aefcbf9570ce21ad04639d12a430d 100644
--- a/src/modules/bank.c
+++ b/src/modules/bank.c
@@ -45,7 +45,7 @@
 #include <vlc_modules.h>
 #include <vlc_fs.h>
 #include <vlc_block.h>
-#include "libvlc.h"
+#include "../libvlc.h"
 #include "config/configuration.h"
 #include "modules/modules.h"
 
diff --git a/src/modules/cache.c b/src/modules/cache.c
index 9312a1f244b8beab53beabada4d37cc652fb6f80..6e8b7aec50e3b856e2953e6240903c0b38b44c99 100644
--- a/src/modules/cache.c
+++ b/src/modules/cache.c
@@ -39,7 +39,7 @@
 
 #include <vlc_common.h>
 #include <vlc_block.h>
-#include "libvlc.h"
+#include "../libvlc.h"
 
 #include <vlc_plugin.h>
 #include <errno.h>
diff --git a/src/modules/entry.c b/src/modules/entry.c
index 2ac0a9532dd99b8e7566b0cfda9c40aa6111c740..941617aeec3cee477d02b5fb2675cfffe93b9528 100644
--- a/src/modules/entry.c
+++ b/src/modules/entry.c
@@ -37,7 +37,7 @@
 
 #include "modules/modules.h"
 #include "config/configuration.h"
-#include "libvlc.h"
+#include "../libvlc.h"
 
 module_t *vlc_module_create(vlc_plugin_t *plugin)
 {
diff --git a/src/modules/modules.c b/src/modules/modules.c
index ff9b83c3b357927ac93606ecb1a68a691b7b089f..fa0e245bc788095f31b3e68efe0557822a19e303 100644
--- a/src/modules/modules.c
+++ b/src/modules/modules.c
@@ -37,7 +37,7 @@
 
 #include <vlc_common.h>
 #include <vlc_modules.h>
-#include "libvlc.h"
+#include "../libvlc.h"
 #include "config/configuration.h"
 #include "vlc_arrays.h"
 #include "modules/modules.h"
diff --git a/src/network/http_auth.c b/src/network/http_auth.c
index 0c4a7e58a61049e16930a67a1dc2cd91dd14c85a..572db699d62181fa1d598f2e99e3254d42c56518 100644
--- a/src/network/http_auth.c
+++ b/src/network/http_auth.c
@@ -36,7 +36,7 @@
 #include <vlc_rand.h>
 #include <vlc_strings.h>
 
-#include "libvlc.h"
+#include "../libvlc.h"
 
 
 /*****************************************************************************
diff --git a/src/network/tls.c b/src/network/tls.c
index b0ac93950d7fdc4bb0a2af8d382016f13b14ff50..b1dee92f389ed3d357bf9a23a0e448e3ac0ae3d6 100644
--- a/src/network/tls.c
+++ b/src/network/tls.c
@@ -39,7 +39,7 @@
 
 #include <vlc_common.h>
 #include <vlc_threads.h>
-#include "libvlc.h"
+#include "../libvlc.h"
 
 #include <vlc_tls.h>
 #include <vlc_modules.h>
diff --git a/src/os2/filesystem.c b/src/os2/filesystem.c
index a1b556261b4a8c0c8c1e0824d1544673211b8d01..c45ad42bea7b97c2335677f03ac0d4f16e10d8a5 100644
--- a/src/os2/filesystem.c
+++ b/src/os2/filesystem.c
@@ -47,7 +47,7 @@
 #include <vlc_charset.h>
 #include <vlc_fs.h>
 #include <vlc_network.h>
-#include "libvlc.h" /* vlc_mkdir */
+#include "../libvlc.h" /* vlc_mkdir */
 
 int vlc_open (const char *filename, int flags, ...)
 {
diff --git a/src/os2/thread.c b/src/os2/thread.c
index 4065575fc7e77a54a8384cb7d4fdcc99b5cf0dbb..b6dbe831b0b2eb32f265b4812029a9d701c6f3f5 100644
--- a/src/os2/thread.c
+++ b/src/os2/thread.c
@@ -33,7 +33,7 @@
 #include <vlc_common.h>
 #include <vlc_threads.h>
 
-#include "libvlc.h"
+#include "../libvlc.h"
 #include <stdarg.h>
 #include <assert.h>
 #include <limits.h>
diff --git a/src/player/player.c b/src/player/player.c
index 4aef6b31ee540fe7d371d7866c1dc1ef37c50a2a..74c4de7ae5ce97d05edc50d387d69a3f6c97b39c 100644
--- a/src/player/player.c
+++ b/src/player/player.c
@@ -33,7 +33,7 @@
 #include <vlc_memstream.h>
 #include <vlc_http.h>
 
-#include "libvlc.h"
+#include "../libvlc.h"
 #include "input/resource.h"
 #include "audio_output/aout_internal.h"
 
diff --git a/src/playlist/export.c b/src/playlist/export.c
index e9f3ab5e0582772620b8d32f0d1571dc585e8da5..011796ba2521feedd7d434c47acd7674b9e69482 100644
--- a/src/playlist/export.c
+++ b/src/playlist/export.c
@@ -32,7 +32,7 @@
 #include <vlc_modules.h>
 #include <vlc_url.h>
 #include "playlist.h"
-#include "libvlc.h"
+#include "../libvlc.h"
 
 struct vlc_playlist_view
 {
diff --git a/src/posix/thread.c b/src/posix/thread.c
index bb5ee5fced286dde41abb03827193903e5d9366c..19c8983423d36ed933a1044f33726a4e1d1517a2 100644
--- a/src/posix/thread.c
+++ b/src/posix/thread.c
@@ -31,7 +31,7 @@
 #include <vlc_common.h>
 #include <vlc_threads.h>
 
-#include "libvlc.h"
+#include "../libvlc.h"
 #include <stdarg.h>
 #include <stdatomic.h>
 #include <signal.h>
diff --git a/src/preparser/fetcher.c b/src/preparser/fetcher.c
index add0af12ed2cfdfe7a02f3878e9969a7f92f88db..2bf1c3d5a7730e108d8dcf2635b2c75decb23ac5 100644
--- a/src/preparser/fetcher.c
+++ b/src/preparser/fetcher.c
@@ -34,7 +34,7 @@
 #include <vlc_executor.h>
 
 #include "art.h"
-#include "libvlc.h"
+#include "../libvlc.h"
 #include "fetcher.h"
 #include "input/input_interface.h"
 #include "misc/interrupt.h"
diff --git a/src/stream_output/sap.c b/src/stream_output/sap.c
index 40c7a62ac57abbc095b459d9d321a5f8a2cea0d2..04730fa64cdfbad1873e49dcc1cfb5ce1a79641b 100644
--- a/src/stream_output/sap.c
+++ b/src/stream_output/sap.c
@@ -37,7 +37,7 @@
 #include <vlc_memstream.h>
 
 #include "stream_output.h"
-#include "libvlc.h"
+#include "../libvlc.h"
 
 /* SAP is always on that port */
 #define IPPORT_SAP 9875
diff --git a/src/text/charset.c b/src/text/charset.c
index 5e65129a9246a6fdd5ccd0444b036bc9fb6c1f9f..9fede5e83f185cec9ae25937177f6a9f1b8d8bed 100644
--- a/src/text/charset.c
+++ b/src/text/charset.c
@@ -40,7 +40,7 @@
 #   include <xlocale.h>
 #endif
 
-#include "libvlc.h"
+#include "../libvlc.h"
 #include <vlc_charset.h>
 
 double vlc_strtod_c(const char *restrict str, char **restrict end)
diff --git a/src/text/strings.c b/src/text/strings.c
index 77abb9620929a4bad84175bb62916b5ab471290f..6a2492c49df74521b94b091d3cc33a4382bf99b9 100644
--- a/src/text/strings.c
+++ b/src/text/strings.c
@@ -51,7 +51,7 @@
 #include <vlc_charset.h>
 #include <vlc_arrays.h>
 #include <vlc_player.h>
-#include <libvlc.h>
+#include "../libvlc.h"
 #include <errno.h>
 
 static const struct xml_entity_s
diff --git a/src/text/unicode.c b/src/text/unicode.c
index 2b27f76ef560c93d81579f50be249c43881cf1cf..44d382f071c7c17cc7a9da30cf750e64e413cd30 100644
--- a/src/text/unicode.c
+++ b/src/text/unicode.c
@@ -30,7 +30,7 @@
 
 #include <vlc_common.h>
 
-#include "libvlc.h"
+#include "../libvlc.h"
 #include <vlc_charset.h>
 
 #include <assert.h>
diff --git a/src/video_output/display.c b/src/video_output/display.c
index b0cacbf22fc3ea68632cdfee861191a43bb16634..e6834e243f095d99e276ec39e44db611bf64f9ba 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -38,7 +38,7 @@
 #include <vlc_picture_pool.h>
 #include <vlc_codec.h>
 
-#include <libvlc.h>
+#include "../libvlc.h"
 
 #include "display.h"
 #include "vout_internal.h"
diff --git a/src/video_output/inhibit.c b/src/video_output/inhibit.c
index 43ca020cb104dea4ddf0f481c59f954ee0ab5ada..46bc5095e7c3905ecf9c188d5525b0582067ca8a 100644
--- a/src/video_output/inhibit.c
+++ b/src/video_output/inhibit.c
@@ -25,7 +25,7 @@
 #include <vlc_common.h>
 #include <vlc_modules.h>
 #include "inhibit.h"
-#include <libvlc.h>
+#include "../libvlc.h"
 #include <assert.h>
 
 typedef struct
diff --git a/src/video_output/opengl.c b/src/video_output/opengl.c
index ec92302827d4080efaad21713ab0bf51746cc760..381eea7784dcfd1678498fa36de513f35d901373 100644
--- a/src/video_output/opengl.c
+++ b/src/video_output/opengl.c
@@ -30,7 +30,7 @@
 #include <vlc_opengl.h>
 #include <vlc_codec.h>
 #include <vlc_vout_display.h>
-#include "libvlc.h"
+#include "../libvlc.h"
 #include <vlc_modules.h>
 
 static const struct vlc_gl_cfg gl_cfg_default = {
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index fc7f3ae940f847ceb31692569c052bccfb15a069..e194a371fefdde8cd74b3c9fffbc82146fb1e639 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -53,7 +53,7 @@
 #include <vlc_tracer.h>
 #include <vlc_atomic.h>
 
-#include <libvlc.h>
+#include "../libvlc.h"
 #include "vout_private.h"
 #include "vout_internal.h"
 #include "display.h"
diff --git a/src/video_output/window.c b/src/video_output/window.c
index 43bfbbb2713a6722c33228fcc08eacf2850bc77f..d8bc7311f212b67041ea42793e32062b52df40f7 100644
--- a/src/video_output/window.c
+++ b/src/video_output/window.c
@@ -35,7 +35,7 @@
 #include <vlc_window.h>
 #include <vlc_modules.h>
 #include "inhibit.h"
-#include <libvlc.h>
+#include "../libvlc.h"
 
 typedef struct
 {
diff --git a/src/win32/filesystem.c b/src/win32/filesystem.c
index 1b0f69db99934957dc9ae4d84e14ad62e26d6bfa..ea953cc34537fad04dec7636842a3f1c19ff070c 100644
--- a/src/win32/filesystem.c
+++ b/src/win32/filesystem.c
@@ -42,7 +42,7 @@
 #include <vlc_common.h>
 #include <vlc_charset.h>
 #include <vlc_fs.h>
-#include "libvlc.h" /* vlc_mkdir */
+#include "../libvlc.h" /* vlc_mkdir */
 
 #ifndef NTDDI_WIN10_RS3
 #define NTDDI_WIN10_RS3  0x0A000004
diff --git a/src/win32/specific.c b/src/win32/specific.c
index e2fef4caad005534c1e22cd31b16afb51b4ad72d..d2405cf2573617c38b2e0ab400dba0cf457790fc 100644
--- a/src/win32/specific.c
+++ b/src/win32/specific.c
@@ -29,7 +29,7 @@
 # define UNICODE
 #endif
 #include <vlc_common.h>
-#include "libvlc.h"
+#include "../libvlc.h"
 #include "../lib/libvlc_internal.h"
 
 #include <winsock2.h>
diff --git a/src/win32/thread.c b/src/win32/thread.c
index 20067cc8cc6ec6f18165d73f338884c59637fba4..25dd055224c51aa9dbdc6a5b2970cdf6f5d84863 100644
--- a/src/win32/thread.c
+++ b/src/win32/thread.c
@@ -35,7 +35,7 @@
 #include <vlc_threads.h>
 #include <vlc_charset.h>
 
-#include "libvlc.h"
+#include "../libvlc.h"
 #include <stdarg.h>
 #include <stdatomic.h>
 #include <assert.h>