diff --git a/make/target-tools.mk b/make/target-tools.mk index 39f822f5..5129a445 100644 --- a/make/target-tools.mk +++ b/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 diff --git a/patches/djmount-fix-newer-gcc.patch b/patches/djmount-fix-newer-gcc.patch new file mode 100644 index 00000000..2526fca5 --- /dev/null +++ b/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 ) + {