Commit 4ab3cd65 authored by louiz’'s avatar louiz’

Fix some little compilation errors with some configs, from last commit

parent d872c2b4
...@@ -162,11 +162,6 @@ file(GLOB source_identd ...@@ -162,11 +162,6 @@ file(GLOB source_identd
add_library(identd STATIC ${source_identd}) add_library(identd STATIC ${source_identd})
target_link_libraries(identd bridge network utils src_utils logger) target_link_libraries(identd bridge network utils src_utils logger)
if(USE_DATABASE)
target_link_libraries(xmpp database)
target_link_libraries(irc database)
endif()
# #
## bridge ## bridge
# #
......
...@@ -161,14 +161,14 @@ void TCPClientSocketHandler::connect(const std::string& address, const std::stri ...@@ -161,14 +161,14 @@ void TCPClientSocketHandler::connect(const std::string& address, const std::stri
struct sockaddr_in6 a; struct sockaddr_in6 a;
socklen_t l = sizeof(a); socklen_t l = sizeof(a);
if (::getsockname(this->socket, (struct sockaddr*)&a, &l) != -1) if (::getsockname(this->socket, (struct sockaddr*)&a, &l) != -1)
this->local_port = ::ntohs(a.sin6_port); this->local_port = ntohs(a.sin6_port);
} }
else if (rp->ai_family == AF_INET) else if (rp->ai_family == AF_INET)
{ {
struct sockaddr_in a; struct sockaddr_in a;
socklen_t l = sizeof(a); socklen_t l = sizeof(a);
if (::getsockname(this->socket, (struct sockaddr*)&a, &l) != -1) if (::getsockname(this->socket, (struct sockaddr*)&a, &l) != -1)
this->local_port = ::ntohs(a.sin_port); this->local_port = ntohs(a.sin_port);
} }
log_debug("Local port: ", this->local_port, ", and remote port: ", this->port); log_debug("Local port: ", this->local_port, ", and remote port: ", this->port);
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#include <network/tcp_server_socket.hpp> #include <network/tcp_server_socket.hpp>
#include <identd/identd_socket.hpp> #include <identd/identd_socket.hpp>
#include <algorithm>
#include <unistd.h> #include <unistd.h>
class BiboumiComponent; class BiboumiComponent;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment