From df2e80c8b472e780b4cc9bfda947b396898cd81d Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Mon, 18 Feb 2013 04:43:58 +0000 Subject: afpfs-ng is an Apple Filing Protocol client that will allow BSD, Linux and Mac OS X systems to access files exported from a Mac OS system with AFP over TCP. WWW: http://sourceforge.net/projects/afpfs-ng/ PR: ports/172780 Submitted by: Manuel Creach --- net/afpfs-ng/files/patch-lib__proto_directory.c | 36 +++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 net/afpfs-ng/files/patch-lib__proto_directory.c (limited to 'net/afpfs-ng/files/patch-lib__proto_directory.c') diff --git a/net/afpfs-ng/files/patch-lib__proto_directory.c b/net/afpfs-ng/files/patch-lib__proto_directory.c new file mode 100644 index 000000000000..54c1c50f84c4 --- /dev/null +++ b/net/afpfs-ng/files/patch-lib__proto_directory.c @@ -0,0 +1,36 @@ +--- lib/proto_directory.c.orig 2008-02-19 02:39:29.000000000 +0000 ++++ lib/proto_directory.c 2012-10-14 13:11:44.000000000 +0000 +@@ -9,10 +9,10 @@ + #include + #include + +-#include "dsi.h" +-#include "afp.h" +-#include "utils.h" +-#include "afp_protocol.h" ++#include "afpfs-ng/dsi.h" ++#include "afpfs-ng/afp.h" ++#include "afpfs-ng/utils.h" ++#include "afpfs-ng/afp_protocol.h" + #include "dsi_protocol.h" + #include "afp_replies.h" + +@@ -248,6 +248,7 @@ + + return 0; + } ++ + int afp_enumerateext2_reply(struct afp_server *server, char * buf, unsigned int size, void * other) + { + +@@ -266,8 +267,7 @@ + char * p = buf + sizeof(*reply); + int i; + char *max=buf+size; +- struct afp_file_info * filebase = NULL, *filecur=NULL, *new_file=NULL; +- void ** x = other; ++ struct afp_file_info * filebase = NULL, *filecur = NULL, *new_file = NULL, **x = (struct afp_file_info **) other; + + if (reply->dsi_header.return_code.error_code) { + return reply->dsi_header.return_code.error_code; +diff -Naur afpfs-ng-0.8.1.orig/lib/proto_files.c afpfs-ng-0.8.1/lib/proto_files.c -- cgit v1.2.3