From 7d7f6d332c4011f1e7963958ea09a8cd59178685 Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Wed, 3 May 2017 13:52:55 +0200 Subject: [PATCH] tests: clone::local: compile UNC functions for Windows only --- tests/clone/local.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/clone/local.c b/tests/clone/local.c index 91a0a1c2a..7f54d05de 100644 --- a/tests/clone/local.c +++ b/tests/clone/local.c @@ -16,6 +16,7 @@ static int file_url(git_buf *buf, const char *host, const char *path) return git_buf_printf(buf, "file://%s/%s", host, path); } +#ifdef GIT_WIN32 static int git_style_unc_path(git_buf *buf, const char *host, const char *path) { git_buf_clear(buf); @@ -49,6 +50,7 @@ static int unc_path(git_buf *buf, const char *host, const char *path) return 0; } +#endif void test_clone_local__should_clone_local(void) {