mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-05 11:08:03 +02:00
fix warning, use Sleep, not _sleep on windows (cherry picked from commit ea36c743ad60a2dd5c6286571d1a475903519809)
This commit is contained in:
parent
e31af7aa81
commit
fa2a53309d
2 changed files with 7 additions and 5 deletions
|
|
@ -17,10 +17,6 @@ add_subdirectory( name-test )
|
|||
|
||||
#INCLUDES=-I$(top_srcdir) $(DBUS_test-CFLAGS)
|
||||
|
||||
if (WIN32)
|
||||
add_definitions(-Dsleep=_sleep)
|
||||
endif (WIN32)
|
||||
|
||||
#if (DBUS_BUILD_TESTS)
|
||||
## break-loader removed for now
|
||||
#test-BINARIES=test-service test-names test-shell-service shell-test spawn-test test-segfault test-exit test-sleep-forever
|
||||
|
|
|
|||
|
|
@ -6,11 +6,17 @@
|
|||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef DBUS_WIN
|
||||
# include <windows.h>
|
||||
# define sleep Sleep
|
||||
#endif
|
||||
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
while (1)
|
||||
sleep (10000000);
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue