1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 02:06:38 +02:00

Fixed bug #1349 (m_sqlite compiles without error under FreeBSD), as well as use C99's stdint.h (or cstdint if available) to get (u)intX_t types instead of our stupid typedefs. pstdint.h included in case there is no cstdint or stdint.h available.

This commit is contained in:
Naram Qashat
2011-10-24 16:32:29 -04:00
parent d0513d6506
commit 377a7a968b
24 changed files with 221 additions and 298 deletions
+4 -4
View File
@@ -2,8 +2,8 @@
std::map<int, Socket *> SocketEngine::Sockets;
int32 TotalRead = 0;
int32 TotalWritten = 0;
int32_t TotalRead = 0;
int32_t TotalWritten = 0;
SocketIO normalSocketIO;
@@ -232,7 +232,7 @@ bool cidr::match(sockaddrs &other)
default:
throw SocketException("Invalid address type");
}
if (memcmp(ip, their_ip, byte))
return false;
@@ -241,7 +241,7 @@ bool cidr::match(sockaddrs &other)
byte = this->cidr_len % 8;
if ((*ip & byte) != (*their_ip & byte))
return false;
return true;
}