Skip to content

Fix missing include - #6277

Merged
ethomson merged 1 commit into
libgit2:mainfrom
cschlack:sys_transport_missing_include
Apr 25, 2022
Merged

Fix missing include#6277
ethomson merged 1 commit into
libgit2:mainfrom
cschlack:sys_transport_missing_include

Conversation

@cschlack

Copy link
Copy Markdown
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
Copy Markdown
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