add support for debian kfreebsd

This commit is contained in:
Marcos Pinto 2008-02-11 14:26:29 +00:00
parent 0f5d041c83
commit ee0851b39e
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ namespace libtorrent
{
std::vector<address> ret;
#if defined __linux__ || defined __MACH__ || defined(__FreeBSD__)
#if defined __linux__ || defined __MACH__ || defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
int s = socket(AF_INET, SOCK_DGRAM, 0);
if (s < 0)
{
@ -90,7 +90,7 @@ namespace libtorrent
ret.push_back(address_v6(b));
}
#if defined __MACH__ || defined(__FreeBSD__)
#if defined __MACH__ || defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
int current_size = item.ifr_addr.sa_len + IFNAMSIZ;
#elif defined __linux__
int current_size = sizeof(ifreq);