rpm-software-management / librepo

A library providing C and Python (libcURL like) API for downloading packages and linux repository metadata in rpm-md format
http://rpm-software-management.github.io/librepo/
GNU Lesser General Public License v2.1
74 stars 91 forks source link

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

Closed kraj closed 2 years ago

kraj commented 2 years ago

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 commented 2 years ago

Thanks!