Skip to content

Commit 8401711

Browse files
authored
Update usrsctp.patch
One more fix
1 parent 1100703 commit 8401711

File tree

1 file changed

+22
-23
lines changed

1 file changed

+22
-23
lines changed

cmake/modules/usrsctp.patch

+22-23
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,30 @@
1+
diff --git a/CMakeLists.txt b/CMakeLists.txt
2+
index 3fc4ec6..1e09260 100644
3+
--- a/CMakeLists.txt
4+
+++ b/CMakeLists.txt
5+
@@ -30,7 +30,7 @@
6+
#
7+
8+
project(usrsctplib C)
9+
-cmake_minimum_required(VERSION 3.0)
10+
+cmake_minimum_required(VERSION 3.10)
11+
12+
# Debug build type as default
13+
if (NOT CMAKE_BUILD_TYPE)
114
diff --git a/usrsctplib/netinet/sctp_output.c b/usrsctplib/netinet/sctp_output.c
2-
index b8a7b46..6f9c9b9 100644
15+
index b8a7b46..819f975 100755
316
--- a/usrsctplib/netinet/sctp_output.c
417
+++ b/usrsctplib/netinet/sctp_output.c
518
@@ -13562,10 +13562,10 @@ sctp_lower_sosend(struct socket *so,
6-
#endif
7-
struct timeval now;
8-
struct sctp_block_entry be;
19+
#endif
20+
struct timeval now;
21+
struct sctp_block_entry be;
922
- struct sctp_inpcb *inp;
1023
+ struct sctp_inpcb *inp = NULL;
11-
struct sctp_tcb *stcb = NULL;
12-
struct sctp_nets *net;
24+
struct sctp_tcb *stcb = NULL;
25+
struct sctp_nets *net;
1326
- struct sctp_association *asoc;
1427
+ struct sctp_association *asoc = NULL;
15-
struct sctp_inpcb *t_inp;
16-
struct sctp_nonpad_sndrcvinfo *sndrcvninfo;
17-
ssize_t sndlen = 0, max_len, local_add_more;
18-
19-
--- a/CMakeLists.txt 2025-04-12 16:05:07.322148414 +0300
20-
+++ b/CMakeLists.txt 2025-04-12 16:07:10.601368408 +0300
21-
@@ -30,7 +30,7 @@
22-
#
23-
24-
project(usrsctplib C)
25-
-cmake_minimum_required(VERSION 3.0)
26-
+cmake_minimum_required(VERSION 3.10)
27-
28-
# Debug build type as default
29-
if (NOT CMAKE_BUILD_TYPE)
30-
31-
28+
struct sctp_inpcb *t_inp;
29+
struct sctp_nonpad_sndrcvinfo *sndrcvninfo;
30+
ssize_t sndlen = 0, max_len, local_add_more;

0 commit comments

Comments
 (0)