mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-23 00:35:53 +08:00
Fix Windows build (few warnings and a wrong file descriptor comparison).
This commit is contained in:
@@ -161,7 +161,11 @@ bool CLCDproc::open()
|
||||
|
||||
/* Create TCP socket */
|
||||
m_socketfd = socket(clientAddress.ss_family, SOCK_STREAM, 0);
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
if (m_socketfd == INVALID_SOCKET) {
|
||||
#else
|
||||
if (m_socketfd == -1) {
|
||||
#endif
|
||||
LogError("LCDproc, failed to create socket");
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user