summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/status.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/status.c b/examples/status.c
index 5f619a055..9c99744cb 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,