add handling for other linux distros
This commit is contained in:
@@ -18,7 +18,10 @@ target_link_libraries(game
|
||||
)
|
||||
|
||||
if (WIN32)
|
||||
target_link_libraries(game ws2_32)
|
||||
target_link_libraries(game ws2_32)
|
||||
else()
|
||||
target_link_libraries(game pthread md)
|
||||
target_link_libraries(game pthread)
|
||||
if (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
|
||||
target_link_libraries(game md)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#include "ClientPackageCryptInfo.h"
|
||||
#include "common/stl.h"
|
||||
|
||||
#ifndef OS_FREEBSD
|
||||
#ifdef OS_WINDOWS
|
||||
#include "libthecore/xdirent.h"
|
||||
#endif
|
||||
|
||||
|
||||
@@ -520,7 +520,9 @@ int start(int argc, char **argv)
|
||||
printf("IP %s\n", g_szPublicIP);
|
||||
|
||||
optind++;
|
||||
optreset = 1;
|
||||
#ifdef OS_FREEBSD
|
||||
optreset = 1;
|
||||
#endif
|
||||
break;
|
||||
|
||||
case 'p': // port
|
||||
@@ -535,7 +537,9 @@ int start(int argc, char **argv)
|
||||
printf("port %d\n", mother_port);
|
||||
|
||||
optind++;
|
||||
optreset = 1;
|
||||
#ifdef OS_FREEBSD
|
||||
optreset = 1;
|
||||
#endif
|
||||
break;
|
||||
|
||||
// LOCALE_SERVICE
|
||||
@@ -544,7 +548,9 @@ int start(int argc, char **argv)
|
||||
if (optind < argc)
|
||||
{
|
||||
st_localeServiceName = argv[optind++];
|
||||
optreset = 1;
|
||||
#ifdef OS_FREEBSD
|
||||
optreset = 1;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user