aboutsummaryrefslogtreecommitdiffstats
path: root/community/afpfs-ng/08-afpfs-ng-0.8.1-fix-errno.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/08-afpfs-ng-0.8.1-fix-errno.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/08-afpfs-ng-0.8.1-fix-errno.patch')
-rw-r--r--community/afpfs-ng/08-afpfs-ng-0.8.1-fix-errno.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/community/afpfs-ng/08-afpfs-ng-0.8.1-fix-errno.patch b/community/afpfs-ng/08-afpfs-ng-0.8.1-fix-errno.patch
new file mode 100644
index 0000000000..ff7ce44bdb
--- /dev/null
+++ b/community/afpfs-ng/08-afpfs-ng-0.8.1-fix-errno.patch
@@ -0,0 +1,23 @@
+--- afpfs-ng-0.8.1/lib/afp.c 2011-09-04 19:42:42.000000000 +0200
++++ afpfs-ng-0.8.1/lib/afp.c 2011-09-04 19:39:44.000000000 +0200
+@@ -19,7 +19,6 @@
+ #include <sys/time.h>
+ #include <sys/types.h>
+ #include <sys/socket.h>
+-#include <errno.h>
+
+ #include <afpfs-ng/afp_protocol.h>
+ #include <afpfs-ng/libafpclient.h>
+--- afpfs-ng-0.8.1/lib/afp_url.c 2011-09-04 19:42:42.000000000 +0200
++++ afpfs-ng-0.8.1/lib/afp_url.c 2011-09-04 19:40:27.000000000 +0200
+@@ -21,7 +21,9 @@
+
+ static int check_port(char * port)
+ {
+- long long ret = strtol(port,NULL,10);
++ long long ret = 0;
++ errno = 0;
++ ret = strtol(port,NULL,10);
+ if ((ret<0) || (ret>32767)) return -1;
+ if (errno) {
+ printf("port error\n");