aboutsummaryrefslogtreecommitdiffstats
path: root/community/afpfs-ng/06-afpfs-ng-0.8.1-boxee4.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-10-07 09:58:23 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2015-10-07 15:43:45 +0200
commita038dbd7871bfe803c8052c49264e80f129507ea (patch)
tree38599e24c8c73d0bb98e875d68c8ef70aa1a67e9 /community/afpfs-ng/06-afpfs-ng-0.8.1-boxee4.patch
parent65f4a9478485674a2f7d4fe2dc0f6191deb0c591 (diff)
downloadaports-a038dbd7871bfe803c8052c49264e80f129507ea.tar.bz2
aports-a038dbd7871bfe803c8052c49264e80f129507ea.tar.xz
community/afpfs-ng: move from main
only kodi needs it
Diffstat (limited to 'community/afpfs-ng/06-afpfs-ng-0.8.1-boxee4.patch')
-rw-r--r--community/afpfs-ng/06-afpfs-ng-0.8.1-boxee4.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/community/afpfs-ng/06-afpfs-ng-0.8.1-boxee4.patch b/community/afpfs-ng/06-afpfs-ng-0.8.1-boxee4.patch
new file mode 100644
index 0000000000..3e09f40dc5
--- /dev/null
+++ b/community/afpfs-ng/06-afpfs-ng-0.8.1-boxee4.patch
@@ -0,0 +1,27 @@
+--- afpfs-ng-0.8.1/lib/identify.c 1970-01-01 01:00:00.000000000 +0100
++++ afpfs-ng-0.8.1/lib/identify.c 2011-08-26 21:33:33.000000000 +0200
+@@ -0,0 +1,24 @@
++#include <string.h>
++#include <afpfs-ng/afp.h>
++
++
++/*
++ * afp_server_identify()
++ *
++ * Identifies a server
++ *
++ * Right now, this only does identification using the machine_type
++ * given in getsrvrinfo, but this could later use mDNS to get
++ * more details.
++ */
++void afp_server_identify(struct afp_server * s)
++{
++ if (strcmp(s->machine_type,"Netatalk")==0)
++ s->server_type=AFPFS_SERVER_TYPE_NETATALK;
++ else if (strcmp(s->machine_type,"AirPort")==0)
++ s->server_type=AFPFS_SERVER_TYPE_AIRPORT;
++ else if (strcmp(s->machine_type,"Macintosh")==0)
++ s->server_type=AFPFS_SERVER_TYPE_MACINTOSH;
++ else
++ s->server_type=AFPFS_SERVER_TYPE_UNKNOWN;
++}