From: Ralf Habacker Date: Mon, 30 Nov 2009 14:59:40 +0000 (+0100) Subject: use dbus provided wait function X-Git-Tag: dbus-1.3.1~189 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fd049c345564b36a2b5b83d00e6e3c675d04309f;p=thirdparty%2Fdbus.git use dbus provided wait function --- diff --git a/test/test-service.c b/test/test-service.c index ee0086ca3..c9f583903 100644 --- a/test/test-service.c +++ b/test/test-service.c @@ -1,6 +1,8 @@ #include "test-utils.h" +#ifdef HAVE_UNISTD_H #include +#endif static DBusLoop *loop; static dbus_bool_t already_quit = FALSE; @@ -234,7 +236,7 @@ handle_delay_echo (DBusConnection *connection, _dbus_verbose ("sleeping for a short time\n"); - usleep (50000); + _dbus_sleep_milliseconds (50); _dbus_verbose ("sending reply to DelayEcho method\n");