summaryrefslogtreecommitdiff
path: root/examples/status.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/status.c')
-rw-r--r--examples/status.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/status.c b/examples/status.c
index 5f619a055..a59f34454 100644
--- a/examples/status.c
+++ b/examples/status.c
@@ -13,7 +13,12 @@
*/
#include "common.h"
-#include <unistd.h>
+#ifdef _WIN32
+# include <Windows.h>
+# define sleep(a) Sleep(a * 1000)
+#else
+# include <unistd.h>
+#endif
/**
* This example demonstrates the use of the libgit2 status APIs,