diff options
author | Jacques Germishuys <jacquesg@striata.com> | 2014-07-03 20:20:00 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2014-08-05 02:07:50 +0200 |
commit | 18cf389c88cf12e2274c10fa95ad8c7504436827 (patch) | |
tree | 826ac0b36d75fcd93c02af95f9dd648f9921dbb5 | |
parent | dbcb7518a6ae213f0e81e3d625d49edd3c2a14b7 (diff) | |
download | libgit2-18cf389c88cf12e2274c10fa95ad8c7504436827.tar.gz |
Include libssh2.h before git2.h (transport.h)
-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 79a632bd..a1081b3f 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://"; |