mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
libtorrent: bump version
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
diff -Naur libtorrent-0.12.5/rak/socket_address.h libtorrent-0.12.5-haiku/rak/socket_address.h
|
||||
--- libtorrent-0.12.5/rak/socket_address.h 2008-05-07 12:19:14.000000000 +0000
|
||||
+++ libtorrent-0.12.5-haiku/rak/socket_address.h 2009-11-25 03:19:59.000000000 +0000
|
||||
@@ -54,6 +54,8 @@
|
||||
#include <netinet/in.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
+
|
||||
+typedef unsigned short sa_family_t;
|
||||
|
||||
namespace rak {
|
||||
|
||||
27
net-libs/libtorrent/patches/libtorrent-0.13.7.patchset
Normal file
27
net-libs/libtorrent/patches/libtorrent-0.13.7.patchset
Normal file
@@ -0,0 +1,27 @@
|
||||
From 20901d2aa6674bb2a9887a3775811da0e0cca88e Mon Sep 17 00:00:00 2001
|
||||
From: Sergei Reznikov <diver@gelios.net>
|
||||
Date: Thu, 3 Jan 2019 11:47:05 +0300
|
||||
Subject: Fix build on Haiku
|
||||
|
||||
|
||||
diff --git a/src/net/socket_fd.cc b/src/net/socket_fd.cc
|
||||
old mode 100755
|
||||
new mode 100644
|
||||
index 54cb6de..fba9d7c
|
||||
--- a/src/net/socket_fd.cc
|
||||
+++ b/src/net/socket_fd.cc
|
||||
@@ -70,9 +70,11 @@ SocketFd::set_priority(priority_type p) {
|
||||
check_valid();
|
||||
int opt = p;
|
||||
|
||||
+#ifndef __HAIKU__
|
||||
if (m_ipv6_socket)
|
||||
return setsockopt(m_fd, IPPROTO_IPV6, IPV6_TCLASS, &opt, sizeof(opt)) == 0;
|
||||
else
|
||||
+#endif
|
||||
return setsockopt(m_fd, IPPROTO_IP, IP_TOS, &opt, sizeof(opt)) == 0;
|
||||
}
|
||||
|
||||
--
|
||||
2.19.1
|
||||
|
||||
Reference in New Issue
Block a user