From 66d4f81d6bc75215179ff2517be4338ee50cccb6 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 27 Aug 2022 09:00:24 -0700 Subject: [PATCH] metadata_downloader: Include unistd.h for lseek() 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 --- librepo/metadata_downloader.c | 1 + 1 file changed, 1 insertion(+) diff --git a/librepo/metadata_downloader.c b/librepo/metadata_downloader.c index 123c77bc..6604255b 100644 --- a/librepo/metadata_downloader.c +++ b/librepo/metadata_downloader.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include "librepo/librepo.h"