From 4fc29fe7fff5312fb88a6470b94bba8f877c679c Mon Sep 17 00:00:00 2001 From: drochner Date: Mon, 15 Oct 2012 22:48:01 +0000 Subject: import the FreeBSD port of minidlna, with minor adaptions to make it build and start up on NetBSD not tested with a real media renderer yet --- multimedia/minidlna/patches/patch-utils-mpo | 41 +++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 multimedia/minidlna/patches/patch-utils-mpo (limited to 'multimedia/minidlna/patches/patch-utils-mpo') diff --git a/multimedia/minidlna/patches/patch-utils-mpo b/multimedia/minidlna/patches/patch-utils-mpo new file mode 100644 index 00000000000..e894dbe61fe --- /dev/null +++ b/multimedia/minidlna/patches/patch-utils-mpo @@ -0,0 +1,41 @@ +$NetBSD: patch-utils-mpo,v 1.1 2012/10/15 22:48:02 drochner Exp $ + +--- utils.c.orig 2012-10-15 18:20:34.000000000 +0000 ++++ utils.c +@@ -19,7 +19,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include +@@ -31,7 +31,7 @@ + #include "upnpglobalvars.h" + #include "log.h" + +-inline int ++int + strcatf(struct string_s *str, const char *fmt, ...) + { + int ret; +@@ -45,7 +45,7 @@ strcatf(struct string_s *str, const char + return ret; + } + +-inline void ++void + strncpyt(char *dst, const char *src, size_t len) + { + strncpy(dst, src, len); +@@ -323,7 +323,8 @@ is_audio(const char * file) + int + is_image(const char * file) + { +- return (ends_with(file, ".jpg") || ends_with(file, ".jpeg")); ++ return (ends_with(file, ".jpg") || ends_with(file, ".jpeg") || ++ ends_with(file, ".mpo")); + } + + int -- cgit v1.2.3