diff options
author | Patrick Steinhardt <ps@pks.im> | 2017-05-03 13:52:55 +0200 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2017-05-15 07:34:04 +0200 |
commit | 7d7f6d332c4011f1e7963958ea09a8cd59178685 (patch) | |
tree | c60b8c77cf87ee01e6bf56f6d241e81714dbdc23 | |
parent | 8d93a11cffa8199d212124401fdca64b5ae3bacc (diff) | |
download | libgit2-7d7f6d332c4011f1e7963958ea09a8cd59178685.tar.gz |
tests: clone::local: compile UNC functions for Windows only
-rw-r--r-- | tests/clone/local.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |