Skip to content

Commit 612f960

Browse files
committed
An attempt to fix compatibility with cmake-4.0
1 parent eb691eb commit 612f960

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

cmake/modules/usrsctp.patch

+21-9
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,26 @@ index b8a7b46..6f9c9b9 100644
66
+++ b/usrsctplib/netinet/sctp_output.c
77
@@ -13562,10 +13562,10 @@ sctp_lower_sosend(struct socket *so,
88
#endif
9-
struct timeval now;
10-
struct sctp_block_entry be;
11-
- struct sctp_inpcb *inp;
9+
struct timeval now;
10+
struct sctp_block_entry be;
11+
- struct sctp_inpcb *inp;
1212
+ struct sctp_inpcb *inp = NULL;
13-
struct sctp_tcb *stcb = NULL;
14-
struct sctp_nets *net;
15-
- struct sctp_association *asoc;
13+
struct sctp_tcb *stcb = NULL;
14+
struct sctp_nets *net;
15+
- struct sctp_association *asoc;
1616
+ struct sctp_association *asoc = NULL;
17-
struct sctp_inpcb *t_inp;
18-
struct sctp_nonpad_sndrcvinfo *sndrcvninfo;
19-
ssize_t sndlen = 0, max_len, local_add_more;
17+
struct sctp_inpcb *t_inp;
18+
struct sctp_nonpad_sndrcvinfo *sndrcvninfo;
19+
ssize_t sndlen = 0, max_len, local_add_more;
20+
21+
--- a/CMakeLists.txt 2025-04-12 16:05:07.322148414 +0300
22+
+++ b/CMakeLists.txt 2025-04-12 16:07:10.601368408 +0300
23+
@@ -30,7 +30,7 @@
24+
#
25+
26+
project(usrsctplib C)
27+
-cmake_minimum_required(VERSION 3.0)
28+
+cmake_minimum_required(VERSION 3.10)
29+
30+
# Debug build type as default
31+
if (NOT CMAKE_BUILD_TYPE)

0 commit comments

Comments
 (0)