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
|
DEFAULT_GUI=win32 # default to win32 gui
|
||||||
MSVC_TARGET=1
|
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
|
NO_LT=1 # do not use libtool at all on cygwin
|
||||||
if test "$with_term" = yes; then
|
if test "$with_term" = yes; then
|
||||||
# ncurses won't compile with -mno-cygwin or -DWIN32
|
# ncurses won't compile with -mno-cygwin or -DWIN32
|
||||||
@ -53,7 +62,7 @@ case "$target" in
|
|||||||
ADD_FLAGS="-DBROKEN_LINKER=1"
|
ADD_FLAGS="-DBROKEN_LINKER=1"
|
||||||
else
|
else
|
||||||
# default case
|
# 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
|
DEFAULT_GUI=win32 # default to win32 gui
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
@ -491,6 +491,8 @@ void HandleRfbClient(SOCKET sClient)
|
|||||||
if(n == 0) {
|
if(n == 0) {
|
||||||
BX_ERROR(("client closed connection."));
|
BX_ERROR(("client closed connection."));
|
||||||
} else {
|
} else {
|
||||||
|
if (errno == EINTR)
|
||||||
|
continue;
|
||||||
BX_ERROR(("error receiving data."));
|
BX_ERROR(("error receiving data."));
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user