Remove obsolete code using sleep() in wxMicroSleep() for BeOS
This code never worked (as proved by the conversion in it which was wrong by a factor of 1e12) and should never be needed anyhow. Simplify configure and give an error, not warning, if neither nanosleep() nor usleep() are available, as otherwise we'd just get a build error later when compiling utilsunx.cpp later.
This commit is contained in:
15
configure
vendored
15
configure
vendored
@@ -30411,20 +30411,10 @@ done
|
||||
|
||||
fi
|
||||
|
||||
HAVE_SOME_SLEEP_FUNC=0
|
||||
if test "$USE_BEOS" = 1; then
|
||||
$as_echo "#define HAVE_SLEEP 1" >>confdefs.h
|
||||
|
||||
HAVE_SOME_SLEEP_FUNC=1
|
||||
fi
|
||||
|
||||
if test "$USE_DARWIN" = 1; then
|
||||
$as_echo "#define HAVE_USLEEP 1" >>confdefs.h
|
||||
|
||||
HAVE_SOME_SLEEP_FUNC=1
|
||||
fi
|
||||
|
||||
if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
|
||||
else
|
||||
POSIX4_LINK=
|
||||
for ac_func in nanosleep
|
||||
do :
|
||||
@@ -30533,8 +30523,7 @@ _ACEOF
|
||||
|
||||
else
|
||||
:
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxSleep() function will not work" >&5
|
||||
$as_echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
|
||||
as_fn_error $? "wxMicroSleep() can't be implemented" "$LINENO" 5
|
||||
|
||||
fi
|
||||
done
|
||||
|
Reference in New Issue
Block a user