- Unbreak

Submitted by:	Vyacheslav I. <yohimba@mail.ru>
This commit is contained in:
Pav Lucistnik 2012-02-12 14:10:36 +00:00
parent 3239db5f44
commit a7dc240b00
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=291037
2 changed files with 35 additions and 2 deletions

View file

@ -19,8 +19,6 @@ LIB_DEPENDS= fuse.2:${PORTSDIR}/sysutils/fusefs-libs \
BUILD_DEPENDS= iconv:${PORTSDIR}/converters/libiconv
RUN_DEPENDS= ${LOCALBASE}/modules/fuse.ko:${PORTSDIR}/sysutils/fusefs-kmod
BROKEN= does not compile
PLIST_FILES= bin/${PORTNAME}
GNU_CONFIGURE= yes
USE_GNOME= pkgconfig

View file

@ -61,3 +61,38 @@ diff -purN djmount/string_util.c djmount/string_util.c
res = talloc_size (result_context, size+1);
if (res) {
rewind (ss->file);
diff -purN djmount/content_dir.c djmount/content_dir.c
--- djmount/content_dir.c 2006-08-28 05:12:20.000000000 +0900
+++ djmount/content_dir.c 2012-02-12 21:14:11.000000000 +0900
@@ -302,7 +302,7 @@ BrowseOrSearchAll (ContentDir* cds,
// Note: it is allowed to have nb_matched == 0 if it cannot be
// computed by the CDS.
int nb_retry = 0;
- while (PtrArray_GetSize (objects) < nb_matched && nb_retry++ < 2) {
+ while (PtrArray_GetSize (objects) < nb_matched && ++nb_retry) {
Log_Printf (LOG_WARNING,
"ContentDir_BrowseId ObjectId=%s : "
"got %d results, expected %d. Retry %d ...",
diff -purN djmount/content_dir.h djmount/content_dir.h
--- djmount/content_dir.h 2006-08-28 05:12:20.000000000 +0900
+++ djmount/content_dir.h 2012-02-12 21:14:11.000000000 +0900
@@ -46,7 +46,7 @@ typedef uint_fast32_t ContentDir_Index;
// ContentDirectory ServiceType
#define CONTENT_DIR_SERVICE_TYPE \
- "urn:schemas-upnp-org:service:ContentDirectory:1"
+ "urn:schemas-upnp-org:service:ContentDirectory:2"
diff -purN djmount/upnp_util.h djmount/upnp_util.h
--- djmount/upnp_util.h 2006-08-28 05:12:20.000000000 +0900
+++ djmount/upnp_util.h 2012-02-12 21:14:11.000000000 +0900
@@ -28,6 +28,7 @@
#include <upnp/upnptools.h>
+#include <upnp/upnp.h>
#ifdef __cplusplus