Skip to content

Commit

Permalink
metadata_downloader: Include unistd.h for lseek()
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
kraj authored and kontura committed Aug 29, 2022
1 parent c3f6643 commit 66d4f81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions librepo/metadata_downloader.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <assert.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/stat.h>

#include "librepo/librepo.h"
Expand Down

0 comments on commit 66d4f81

Please sign in to comment.