summaryrefslogtreecommitdiffstats
path: root/main/afpfs-ng/06-afpfs-ng-0.8.1-boxee4.patch
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2013-01-07 23:07:13 +0100
committerCarlo Landmeter <clandmeter@gmail.com>2013-01-07 23:12:43 +0100
commit59b52325609f16ef7f31d141d1234c345575ddc6 (patch)
tree3b5450e531762c8a8a584a2aba769238b53eaf8c /main/afpfs-ng/06-afpfs-ng-0.8.1-boxee4.patch
parentf9d6e74ab13741f91ede4875571b2ec75f1f5a15 (diff)
downloadaports-59b52325609f16ef7f31d141d1234c345575ddc6.tar.bz2
aports-59b52325609f16ef7f31d141d1234c345575ddc6.tar.xz
testing/afpfs-ng: move to main
Diffstat (limited to 'main/afpfs-ng/06-afpfs-ng-0.8.1-boxee4.patch')
-rw-r--r--main/afpfs-ng/06-afpfs-ng-0.8.1-boxee4.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/main/afpfs-ng/06-afpfs-ng-0.8.1-boxee4.patch b/main/afpfs-ng/06-afpfs-ng-0.8.1-boxee4.patch
new file mode 100644
index 000000000..3e09f40dc
--- /dev/null
+++ b/main/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;
++}