RMG-Core: link to winsock2 & correct included header

This commit is contained in:
Rosalie Wanders
2022-01-09 13:55:19 +01:00
parent 98ab96db6a
commit 93c7ef1de8
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -48,6 +48,10 @@ if(UNIX)
target_link_libraries(RMG-Core dl)
endif(UNIX)
if(WIN32)
target_link_libraries(RMG-Core wsock32 ws2_32)
endif(WIN32)
target_link_libraries(RMG-Core
${MINIZIP_LIBRARIES}
)
+1 -1
View File
@@ -14,7 +14,7 @@
#include "Rom.hpp"
#ifdef _WIN32
#include <winsock.h>
#include <winsock2.h>
#else // Unix
#include <arpa/inet.h>
#endif // _WIN32