Browse Source

- djmount: add patch to fix build with newer gcc

master
vanhofen 5 years ago
parent
commit
e0239f5285
  1. 1
      make/target-tools.mk
  2. 13
      patches/djmount-fix-newer-gcc.patch

1
make/target-tools.mk

@ -508,6 +508,7 @@ $(ARCHIVE)/$(DJMOUNT_SOURCE):
DJMOUNT_PATCH = djmount-fix-hang-with-asset-upnp.patch
DJMOUNT_PATCH += djmount-fix-incorrect-range-when-retrieving-content-via-HTTP.patch
DJMOUNT_PATCH += djmount-fix-new-autotools.diff
DJMOUNT_PATCH += djmount-fix-newer-gcc.patch
DJMOUNT_PATCH += djmount-fixed-crash-when-using-UTF-8-charset.patch
DJMOUNT_PATCH += djmount-fixed-crash.patch
DJMOUNT_PATCH += djmount-support-fstab-mounting.diff

13
patches/djmount-fix-newer-gcc.patch

@ -0,0 +1,13 @@
diff --git a/libupnp/upnp/src/genlib/net/http/webserver.c b/libupnp/upnp/src/genlib/net/http/webserver.c
index f5dc1c9..70c7993 100644
--- a/libupnp/upnp/src/genlib/net/http/webserver.c
+++ b/libupnp/upnp/src/genlib/net/http/webserver.c
@@ -280,7 +280,7 @@ search_extension( IN const char *extension,
* 0 - On Sucess
* UPNP_E_OUTOF_MEMORY - on memory allocation failures
************************************************************************/
-XINLINE int
+static XINLINE int
get_content_type( IN const char *filename,
OUT DOMString * content_type )
{
Loading…
Cancel
Save