lib/upnp: use include path without upnp/ prefix and honor pkg-config CFLAGS

If libupnp is installed in a non-standard location we must rely on the
include path provided by $(pkg-config --cflags libupnp). Relative to the
path given from that command no prefix must be used to find the respective
files.
This commit is contained in:
Uwe Kleine-König
2017-10-13 18:14:06 +02:00
committed by Max Kellermann
parent 75d068b7cd
commit 5a11e03725
12 changed files with 16 additions and 13 deletions

View File

@@ -20,7 +20,7 @@
#ifndef MPD_UPNP_COMPAT_HXX
#define MPD_UPNP_COMPAT_HXX
#include <upnp/upnp.h>
#include <upnp.h>
#if UPNP_VERSION < 10800
/* emulate the libupnp 1.8 API with older versions */