diff --git a/tools/udplogserver/main.cpp b/tools/udplogserver/main.cpp index ccbee65..60bc9ba 100644 --- a/tools/udplogserver/main.cpp +++ b/tools/udplogserver/main.cpp @@ -1,13 +1,17 @@ #ifdef _WIN32 #include #else -#include #include +#include +#include +#include +#include #include #endif #include #include +#include #define SERVER_PORT 4405 @@ -77,7 +81,11 @@ int main(int argc, char **argv) if (select(fd + 1, &fdsRead, NULL, NULL, &tv) == 1) { struct sockaddr_in from; +#ifdef _WIN32 int fromLen = sizeof(from); +#else + socklen_t fromLen = sizeof(from); +#endif int recvd = recvfrom(fd, buffer, sizeof(buffer), 0, (struct sockaddr *) &from, &fromLen); if (recvd > 0) {