Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src/version.h.in: Add missing include to prevent build errors. #2261

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

davischw
Copy link
Contributor

@davischw davischw commented Jun 28, 2024

Add missing include of ly_config.h to prevent build errors as shown below when including libyang/version.h in downstream projects.

/usr/include/libyang/version.h:43:17: error: expected ‘;’ before ‘extern’
   43 | LIBYANG_API_DECL extern struct ly_version ly_version_so;
      |                 ^~~~~~~
      |                 ;
/usr/include/libyang/version.h:48:17: error: expected ‘;’ before ‘extern’
   48 | LIBYANG_API_DECL extern struct ly_version ly_version_proj;
      |                 ^~~~~~~
      |                 ;

Add missing include of 'ly_config.h' to prevent build errors when
including 'version.h' in downstream projects.

Signed-off-by: David Schweizer <[email protected]>
@michalvasko
Copy link
Member

Sorry about the mistake, thanks for the fix.

@michalvasko michalvasko merged commit 70addcf into CESNET:devel Jul 1, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants