summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Germishuys <jacquesg@striata.com>2014-07-03 20:20:00 +0200
committerJacques Germishuys <jacquesg@striata.com>2014-07-03 20:20:00 +0200
commitae241ae1299e35c265481f19bbffcde0830feaa6 (patch)
treec370e1624edf3f61cdf9849ed477e7d16520a330
parent268dafa260f6c3135484d306b1ce4f2b63320a1f (diff)
downloadlibgit2-ae241ae1299e35c265481f19bbffcde0830feaa6.tar.gz
Include libssh2.h before git2.h (transport.h)
-rw-r--r--src/transports/ssh.c6
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://";