[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Adding MPTCP option to wget
From: |
Gisle Vanem |
Subject: |
Re: Adding MPTCP option to wget |
Date: |
Mon, 5 Jun 2023 09:49:39 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
Bastien Wiaux wrote:
diff --git a/src/connect.h b/src/connect.h
index d03a1708..e50fafe7 100644
--- a/src/connect.h
+++ b/src/connect.h
@@ -86,4 +86,38 @@ int select_fd_nb (int, double, int);
#define select_fd_nb select_fd
#endif
+#ifdef ENABLE_MPTCP
+#ifndef IPPROTO_MPTCP
+#define IPPROTO_MPTCP 262
+#endif
+#include <linux/types.h>
+#ifndef SOL_MPTCP
+#define SOL_MPTCP 284
+#endif
-------
This won't compile for non-Linux. Should perhaps be:
#if defined(ENABLE_MPTCP)
#if defined(__linux__)
#include <linux/types.h>
#else
#error "Only Linux is supported for 'ENABLE_MPTCP'"
#endif
#endif
/* make the rest compile with 'opt.mptcp == true'
*/
#ifndef IPPROTO_MPTCP
#define IPPROTO_MPTCP 262
#endif
#ifndef SOL_MPTCP
#define SOL_MPTCP 284
#endif
--
--gv