diff options
Diffstat (limited to 'net-dialup/lrzsz/files/lrzsz-0.12.20-c99.patch')
-rw-r--r-- | net-dialup/lrzsz/files/lrzsz-0.12.20-c99.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/net-dialup/lrzsz/files/lrzsz-0.12.20-c99.patch b/net-dialup/lrzsz/files/lrzsz-0.12.20-c99.patch new file mode 100644 index 000000000000..db593179b02e --- /dev/null +++ b/net-dialup/lrzsz/files/lrzsz-0.12.20-c99.patch @@ -0,0 +1,27 @@ +https://src.fedoraproject.org/rpms/lrzsz/blob/c23247c9c7604aec31d49ed1b238622835f575e2/f/lrzsz-socklen.patch + +Use socklen_t as the length of the socket address (which is a bit of +an anachronism, considering the rest of the sources). The previous +code des not work on 64-bit big-endian architectures. + +--- a/src/tcp.c ++++ b/src/tcp.c +@@ -56,7 +56,7 @@ tcp_server (char *buf) + struct sockaddr_in s; + struct sockaddr_in t; + int on=1; +- size_t len; ++ socklen_t len; + + if ((sock = socket (AF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0) { + error(1,errno,"socket"); +@@ -91,7 +91,7 @@ tcp_accept (int d) + { + int so; + struct sockaddr_in s; +- size_t namelen; ++ socklen_t namelen; + int num=0; + + namelen = sizeof(s); + |