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

metadata_downloader: Include unistd.h for lseek() #263

Merged
merged 1 commit into from
Aug 29, 2022

Conversation

kraj
Copy link
Contributor

@kraj kraj commented Aug 27, 2022

This is found when compiling on musl systems

Fixes

metadata_downloader.c:331:9: error: call to undeclared function 'lseek'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
lseek(fd_value, SEEK_SET, 0);
^

Signed-off-by: Khem Raj raj.khem@gmail.com

This is found when compiling on musl systems

Fixes

metadata_downloader.c:331:9: error: call to undeclared function 'lseek'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        lseek(fd_value, SEEK_SET, 0);
        ^

Signed-off-by: Khem Raj <raj.khem@gmail.com>
@kontura
Copy link
Contributor

kontura commented Aug 29, 2022

Thanks!

@kontura kontura merged commit 66d4f81 into rpm-software-management:master Aug 29, 2022
@kontura kontura self-assigned this Aug 29, 2022
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