From dbc17141d5e22a6b1e4fc4ebfc592603933777be Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 1 Dec 2024 15:04:48 +0000 Subject: Fix some compiler warnings when building on Haiku. --- src/socket.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/socket.cpp') diff --git a/src/socket.cpp b/src/socket.cpp index 231ab185c..f8564b9d1 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -36,19 +36,19 @@ namespace { +#ifdef IPPROTO_SCTP // Checks whether the system can create SCTP sockets. bool CanCreateSCTPSocket() { -#ifdef IPPROTO_SCTP int fd = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP); if (fd >= 0) { SocketEngine::Close(fd); return true; } -#endif return false; } +#endif } bool InspIRCd::BindPort(const std::shared_ptr& tag, const irc::sockets::sockaddrs& sa, std::vector& old_ports, sa_family_t protocol) -- cgit v1.3.1-10-gc9f91