diff options
author | drochner <drochner@pkgsrc.org> | 2012-10-15 22:48:01 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2012-10-15 22:48:01 +0000 |
commit | 4fc29fe7fff5312fb88a6470b94bba8f877c679c (patch) | |
tree | a3b7157fa20638ab13faed5ded54a2f234ed3f4a /multimedia/minidlna/patches/patch-utils-mpo | |
parent | e91eff60f1c81ba0e370ab3c88203d1da3d21806 (diff) | |
download | pkgsrc-4fc29fe7fff5312fb88a6470b94bba8f877c679c.tar.gz |
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
Diffstat (limited to 'multimedia/minidlna/patches/patch-utils-mpo')
-rw-r--r-- | multimedia/minidlna/patches/patch-utils-mpo | 41 |
1 files changed, 41 insertions, 0 deletions
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 <ctype.h> + #include <string.h> + #include <stdlib.h> +-#include <linux/limits.h> ++#include <limits.h> + #include <sys/stat.h> + #include <unistd.h> + #include <sys/types.h> +@@ -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 |