diff options
| author | 2024-12-01 15:36:15 +0000 | |
|---|---|---|
| committer | 2024-12-01 15:36:15 +0000 | |
| commit | 9a3130835102bd30d143acf4bc519ea427778918 (patch) | |
| tree | 76eac999f5c2890c7a85a4e239e907644407119a /src/socket.cpp | |
| parent | Merge branch 'insp4' into master. (diff) | |
| parent | Fix some compiler warnings when building on Haiku. (diff) | |
Merge branch 'insp4' into master.
Diffstat (limited to 'src/socket.cpp')
| -rw-r--r-- | src/socket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/socket.cpp b/src/socket.cpp index 9f520df16..de90e846e 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<ConfigTag>& tag, const irc::sockets::sockaddrs& sa, std::vector<ListenSocket*>& old_ports, sa_family_t protocol) |
