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

Reply via email to