Merge pull request #2318 from linquize/sleep Make examples/status.c compile on Windows
diff --git a/examples/status.c b/examples/status.c
index 5f619a0..9c99744 100644
--- a/examples/status.c
+++ b/examples/status.c
@@ -13,7 +13,11 @@
*/
#include "common.h"
+#ifdef _WIN32
+#define sleep(a) Sleep(a * 1000)
+#else
#include <unistd.h>
+#endif
/**
* This example demonstrates the use of the libgit2 status APIs,