From 6ce7e62e05a4eff1ea059b4725d6604a4260eabe Mon Sep 17 00:00:00 2001 From: MarcEricMartel Date: Sun, 29 Oct 2023 16:45:57 -0400 Subject: [PATCH] =?UTF-8?q?pour=20=C3=AAtre=20s=C3=BBr?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SQCSim2021/connector.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SQCSim2021/connector.cpp b/SQCSim2021/connector.cpp index c9e6a27..d3f8f10 100644 --- a/SQCSim2021/connector.cpp +++ b/SQCSim2021/connector.cpp @@ -59,10 +59,10 @@ int Connector::Connect(const char* srv_addr, std::string name) { #ifdef _WIN32 u_long flag = 1; -#else - uint64_t** flag = nullptr; -#endif if (ioctl(m_sock_tcp, SOCK_NONBLOCK, &flag) < 0) { +#else + if (ioctl(m_sock_tcp, SOCK_NONBLOCK, NULL) < 0) { +#endif std::cout << "Impossible de mettre le socket en mode non-bloquant." << std::endl; return 3; }