diff --git a/clients/roscpp/src/libros/transport/transport_tcp.cpp b/clients/roscpp/src/libros/transport/transport_tcp.cpp index 32d3d28422..946b714c5e 100644 --- a/clients/roscpp/src/libros/transport/transport_tcp.cpp +++ b/clients/roscpp/src/libros/transport/transport_tcp.cpp @@ -42,7 +42,9 @@ #include #include #include -#include // explicit include required for FreeBSD +#ifndef _WIN32 + #include // explicit include required for FreeBSD +#endif namespace ros { diff --git a/clients/roscpp/src/libros/transport/transport_udp.cpp b/clients/roscpp/src/libros/transport/transport_udp.cpp index c8b85cd00c..77e5549c4e 100644 --- a/clients/roscpp/src/libros/transport/transport_udp.cpp +++ b/clients/roscpp/src/libros/transport/transport_udp.cpp @@ -38,7 +38,9 @@ #include #include -#include // explicit include required for FreeBSD +#ifndef _WIN32 + #include // explicit include required for FreeBSD +#endif #include #if defined(__APPLE__)