#include <arpa/inet.h>
#else
#include "inspircd_win32wrapper.h"
+#include "inspircd_se_config.h"
#endif
#include "dns.h"
#endif
const char* ipaddr_from;
unsigned short int port_from = 0;
-
- int length = recvfrom(this->GetFd(),(char*)buffer,sizeof(DNSHeader),0,from,&x);
+ int length = _recvfrom(this->GetFd(),(char*)buffer,sizeof(DNSHeader),0,from,&x);
/* Did we get the whole header? */
if (length < 12)
port_from = ntohs(((sockaddr_in6*)from)->sin6_port);
}
else
+#endif
{
ipaddr_from = inet_ntoa(((sockaddr_in*)from)->sin_addr);
port_from = ntohs(((sockaddr_in*)from)->sin_port);
}
-#else
- ipaddr_from = inet_ntoa(((sockaddr_in*)from)->sin_addr);
- port_from = ntohs(((sockaddr_in*)from)->sin_port);
-#endif
delete[] from;