ObjFW  Check-in [758e5eafae]

Overview
Comment:configure: Check if we have <linux/mptcp.h>
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | mptcp
Files: files | file ages | folders
SHA3-256: 758e5eafaed5f0c2f79f76105709185354f37f7fb309dd1981b968c7f7fe9133
User & Date: js on 2024-10-30 21:51:13
Other Links: branch diff | manifest | tags
Context
2024-11-06
21:45
Don't compile MPTCP support on old macOS versions check-in: 3f9e0e0f07 user: js tags: mptcp
2024-10-30
21:51
configure: Check if we have <linux/mptcp.h> check-in: 758e5eafae user: js tags: mptcp
21:11
Always use AF_INET6 for MPTCP on Linux check-in: 1abe178915 user: js tags: mptcp
Changes

Modified configure.ac from [9067714a39] to [0a94deb93e].

1486
1487
1488
1489
1490
1491
1492

1493
1494
1495
1496
1497
1498
1499
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500







+







		AC_DEFINE(OF_HAVE_NETINET_IN_H, 1,
			[Whether we have netinet/in.h])
	])
	AC_CHECK_HEADER(netinet/tcp.h, [
		AC_DEFINE(OF_HAVE_NETINET_TCP_H, 1,
			[Whether we have netinet/tcp.h])
	])
	AC_CHECK_HEADERS(linux/mptcp.h)
	AC_CHECK_HEADER(netinet/sctp.h, [
		AC_DEFINE(OF_HAVE_SCTP, 1, [Whether we have SCTP])
		AC_DEFINE(OF_HAVE_NETINET_SCTP_H, 1,
			[Whether we have netinet/sctp.h])
		AC_SUBST(USE_SRCS_SCTP, '${SRCS_SCTP}')
	], [], [
		#ifdef OF_HAVE_SYS_SOCKET_H

Modified src/OFTCPSocket.m from [31cc0fb260] to [8eacf8e15c].

49
50
51
52
53
54
55
56

57
58
59
60
61
62
63
49
50
51
52
53
54
55

56
57
58
59
60
61
62
63







-
+







#import "OFAlreadyOpenException.h"
#import "OFBindIPSocketFailedException.h"
#import "OFGetOptionFailedException.h"
#import "OFNotImplementedException.h"
#import "OFNotOpenException.h"
#import "OFSetOptionFailedException.h"

#ifdef OF_LINUX
#ifdef HAVE_LINUX_MPTCP_H
# include <linux/mptcp.h>
#endif

#if defined(OF_MACOS) || defined(OF_IOS)
# ifndef AF_MULTIPATH
#  define AF_MULTIPATH 39
# endif