From 8c1df510df01fc0b54ed6a43797806afa2588ec7 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Tue, 16 Mar 2010 15:54:00 +0100 Subject: [PATCH 6/9] Port dbus-monitor to Windows CE. --- tools/dbus-monitor.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/tools/dbus-monitor.c b/tools/dbus-monitor.c index c368128..9db22a9 100644 --- a/tools/dbus-monitor.c +++ b/tools/dbus-monitor.c @@ -41,6 +41,16 @@ #define DBUS_SECONDS_SINCE_1601 11644473600LL #define DBUS_USEC_IN_SEC 1000000LL +#ifdef DBUS_WINCE +void +GetSystemTimeAsFileTime (LPFILETIME ftp) +{ + SYSTEMTIME st; + GetSystemTime (&st); + SystemTimeToFileTime (&st, ftp); +} +#endif + static int gettimeofday (struct timeval *__p, void *__t) -- 1.6.3.3