[vlc-devel] [PATCH] services_discovery: upnp: Fix libupnp header includes

Marvin Scholz epirat07 at gmail.com
Sat Jul 28 17:56:21 CEST 2018


The libupnp .pc file uses -I${includedir}/upnp which means that the
way the headers were included would not result in them actually being
found in all cases due to the extraneous "upnp".
---
 modules/services_discovery/upnp-wrapper.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/services_discovery/upnp-wrapper.hpp b/modules/services_discovery/upnp-wrapper.hpp
index ebae8fc96f..c62749214e 100644
--- a/modules/services_discovery/upnp-wrapper.hpp
+++ b/modules/services_discovery/upnp-wrapper.hpp
@@ -31,8 +31,8 @@
 #include <algorithm>
 #include <assert.h>
 
-#include <upnp/upnp.h>
-#include <upnp/upnptools.h>
+#include <upnp.h>
+#include <upnptools.h>
 
 #if UPNP_VERSION < 10800
 typedef void* UpnpEventPtr;
-- 
2.15.1 (Apple Git-101)



More information about the vlc-devel mailing list