diff --git a/utils/TerraSync/CMakeLists.txt b/utils/TerraSync/CMakeLists.txt index ae3af2f99..bedc1018d 100644 --- a/utils/TerraSync/CMakeLists.txt +++ b/utils/TerraSync/CMakeLists.txt @@ -5,7 +5,8 @@ add_executable(terrasync terrasync.cxx) target_link_libraries(terrasync ${SIMGEAR_LIBRARIES} - ${ZLIB_LIBRARIES}) + ${ZLIB_LIBRARIES} + ${WINSOCK_LIBRARY}) if(HAVE_SVN_CLIENT) target_link_libraries(terrasync ${SVN_CLIENT_LIBRARIES}) diff --git a/utils/TerraSync/terrasync.cxx b/utils/TerraSync/terrasync.cxx index d48e43f77..bcf6e0ca8 100644 --- a/utils/TerraSync/terrasync.cxx +++ b/utils/TerraSync/terrasync.cxx @@ -33,7 +33,11 @@ #include #include #elif defined(_MSC_VER) -#include +# include +# ifndef HAVE_SVN_CLIENT_H +# include +# include +# endif #endif #include // atoi() atof() abs() system()