summaryrefslogtreecommitdiff
path: root/remote.go
diff options
context:
space:
mode:
authorlhchavez <[email protected]>2020-02-13 02:52:50 +0000
committerlhchavez <[email protected]>2020-02-13 02:52:50 +0000
commit22d400832bced5456a0495111d6e9eea432bc5e6 (patch)
tree6026a804d9e4e110359acc8d28279a0018dee1a3 /remote.go
parent150a8c60169ee69f4a869acbc10dbe097274605a (diff)
Fix build for go 1.9
This change makes the #includes between credentials.go and remote.go consistent to avoid a build error in go 1.9.
Diffstat (limited to 'remote.go')
-rw-r--r--remote.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/remote.go b/remote.go
index b4b1dd7..43ffd33 100644
--- a/remote.go
+++ b/remote.go
@@ -1,9 +1,11 @@
package git
/*
-#include <git2.h>
#include <string.h>
+#include <git2.h>
+#include <git2/sys/cred.h>
+
extern void _go_git_setup_callbacks(git_remote_callbacks *callbacks);
*/