blob: 05bf4018758fee0c08d7b73e61ce2706efca9411 [file] [log] [blame] [edit]
--- OSM-binary-1.5.0/tools/CMakeLists.txt.orig 2021-01-21 08:41:44.286454800 +0300
+++ OSM-binary-1.5.0/tools/CMakeLists.txt 2021-01-21 08:42:02.771249700 +0300
@@ -9,7 +9,7 @@
add_executable(osmpbf-outline osmpbf-outline.cpp)
target_include_directories(osmpbf-outline SYSTEM PRIVATE ${ZLIB_INCLUDE_DIR})
-target_link_libraries(osmpbf-outline PRIVATE osmpbf ZLIB::ZLIB protobuf::libprotobuf)
+target_link_libraries(osmpbf-outline PRIVATE osmpbf ZLIB::ZLIB protobuf::libprotobuf ws2_32)
install(TARGETS osmpbf-outline RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
install(FILES osmpbf-outline.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
--- OSM-binary-1.5.0/tools/osmpbf-outline.cpp.orig 2021-01-21 08:40:57.370617800 +0300
+++ OSM-binary-1.5.0/tools/osmpbf-outline.cpp 2021-01-21 08:41:03.475493300 +0300
@@ -11,7 +11,7 @@
#include <zlib.h>
// netinet or winsock2 provides the network-byte-order conversion function
-#ifdef D_HAVE_WINSOCK
+#ifdef _WIN32
#include <winsock2.h>
#else
#include <netinet/in.h>