Skip to content

Conversation

cschlack
Copy link
Contributor

#include <git2/sys/transport.h> leads to the following error message:

compiling test.c
In file included from test.c:2:
/opt/homebrew/Cellar/libgit2/1.4.2_1/include/git2/sys/transport.h:38:9: error: unknown type name 'git_remote_connect_options'
                const git_remote_connect_options *connect_opts);
                      ^

git_remote_connect_options is defined in git2/remote.h

Including "git2/remote.h" in include/git2/sys/transport.h fixes the issue

@ethomson
Copy link
Member

Good catch, thanks!

@ethomson ethomson merged commit a1c94e9 into libgit2:main Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants