diff --git a/src/gba/remote.cpp b/src/gba/remote.cpp index 86f93ba8..a292fb36 100644 --- a/src/gba/remote.cpp +++ b/src/gba/remote.cpp @@ -75,7 +75,11 @@ bool remoteTcpInit() remoteListenSocket = s; +#ifdef _WIN32 if(s == INVALID_SOCKET) { +#else + if(s < 0) { +#endif fprintf(stderr,"Error opening socket\n"); exit(-1); }