diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-07-04 09:18:01 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-07-04 09:18:01 +0200 |
commit | 98ce2318c86b0bf276c016c598f86c4d3566fc69 (patch) | |
tree | c370e1624edf3f61cdf9849ed477e7d16520a330 /src | |
parent | b0ed61f8227cb6fb937f68c9a6750851f3d0632f (diff) | |
parent | ae241ae1299e35c265481f19bbffcde0830feaa6 (diff) | |
download | libgit2-98ce2318c86b0bf276c016c598f86c4d3566fc69.tar.gz |
Merge pull request #2461 from jacquesg/ssh2-warnings
Fix SSH2 warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/transports/ssh.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/transports/ssh.c b/src/transports/ssh.c index 79a632bd5..a1081b3ff 100644 --- a/src/transports/ssh.c +++ b/src/transports/ssh.c @@ -5,6 +5,10 @@ * a Linking Exception. For full terms see the included COPYING file. */ +#ifdef GIT_SSH +#include <libssh2.h> +#endif + #include "git2.h" #include "buffer.h" #include "netops.h" @@ -12,8 +16,6 @@ #ifdef GIT_SSH -#include <libssh2.h> - #define OWNING_SUBTRANSPORT(s) ((ssh_subtransport *)(s)->parent.subtransport) static const char prefix_ssh[] = "ssh://"; |