fixed compilation in cygwin
fixed rfb under windows
This commit is contained in:
parent
0d64a6cb92
commit
4a146456c6
@ -44,7 +44,16 @@ case "$target" in
|
||||
DEFAULT_GUI=win32 # default to win32 gui
|
||||
MSVC_TARGET=1
|
||||
;;
|
||||
*-pc-cygwin* | *-pc-mingw32*)
|
||||
*-pc-cygwin*)
|
||||
NO_LT=1 # do not use libtool at all on cygwin
|
||||
if test "$with_term" = yes; then
|
||||
# ncurses won't compile with -mno-cygwin or -DWIN32
|
||||
# also, I can't get it to link without this -DBROKEN_LINKER=1 hack.
|
||||
# see /usr/include/curses.h for details.
|
||||
ADD_FLAGS="-DBROKEN_LINKER=1"
|
||||
fi
|
||||
;;
|
||||
*-pc-mingw32*)
|
||||
NO_LT=1 # do not use libtool at all on cygwin
|
||||
if test "$with_term" = yes; then
|
||||
# ncurses won't compile with -mno-cygwin or -DWIN32
|
||||
@ -53,7 +62,7 @@ case "$target" in
|
||||
ADD_FLAGS="-DBROKEN_LINKER=1"
|
||||
else
|
||||
# default case
|
||||
ADD_FLAGS="-DWIN32" # required for cygwin compile+win32 gui
|
||||
ADD_FLAGS="-DWIN32" # required for mingw compile+win32 gui
|
||||
DEFAULT_GUI=win32 # default to win32 gui
|
||||
fi
|
||||
;;
|
||||
|
@ -491,6 +491,8 @@ void HandleRfbClient(SOCKET sClient)
|
||||
if(n == 0) {
|
||||
BX_ERROR(("client closed connection."));
|
||||
} else {
|
||||
if (errno == EINTR)
|
||||
continue;
|
||||
BX_ERROR(("error receiving data."));
|
||||
}
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user