From 75017d09572845f8226e9ce81009f78d6de6f211 Mon Sep 17 00:00:00 2001 From: squall-leonhart Date: Sat, 6 Apr 2013 18:33:15 +0000 Subject: [PATCH] dirty buildfix for linux, can do it properly later. git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1193 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/gba/remote.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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); }