From 5c8fcfb33b3c6e201c775f9a45a7969e201d17ef Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Sat, 18 Apr 2015 21:15:27 +0200 Subject: [PATCH 2/3] MSVC compile fix. --- tools/dbus-echo.c | 4 +++- tools/dbus-update-activation-environment.c | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/dbus-echo.c b/tools/dbus-echo.c index 689c1b8..0e7de1b 100644 --- a/tools/dbus-echo.c +++ b/tools/dbus-echo.c @@ -26,7 +26,9 @@ #include #include #include +#ifdef HAVE_UNISTD_H #include +#endif #include @@ -231,7 +233,7 @@ dbus_test_tool_black_hole (int argc, char **argv) if (noread) { while (1) - sleep (3600); + _dbus_sleep_milliseconds (3600); } noreply = TRUE; diff --git a/tools/dbus-update-activation-environment.c b/tools/dbus-update-activation-environment.c index 56d3b20..ee38a96 100644 --- a/tools/dbus-update-activation-environment.c +++ b/tools/dbus-update-activation-environment.c @@ -59,8 +59,10 @@ # define EX_OSERR 71 #endif +#ifndef _MSC_VER /* apparently this is the portable way to get the entire environment... */ extern char **environ; +#endif /* we don't really have anything useful to say about the stage at which we * failed */ -- 1.8.4.5