Commit fa2a5330 authored by Frank Osterfeld's avatar Frank Osterfeld Committed by Ralf Habacker

fix warning, use Sleep, not _sleep on windows (cherry picked from commit...

fix warning, use Sleep, not _sleep on windows (cherry picked from commit ea36c743ad60a2dd5c6286571d1a475903519809)
parent e31af7aa
......@@ -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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment