blob: 22b3110a61741d650acd58371a15a2d3dcf50181 [file] [log] [blame]
Patrick Williams92b42cb2022-09-03 06:53:57 -05001From 5c63ec2e2d4726268ace85e5c61727cbd811d982 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 27 Aug 2022 09:00:24 -0700
4Subject: [PATCH] metadata_downloader: Include unistd.h for lseek()
5
6This is found when compiling on musl systems
7
8Fixes
9
10metadata_downloader.c:331:9: error: call to undeclared function 'lseek'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
11 lseek(fd_value, SEEK_SET, 0);
12 ^
13
14Upstream-Status: Submitted [https://github.com/rpm-software-management/librepo/pull/263]
15Signed-off-by: Khem Raj <raj.khem@gmail.com>
16---
17 librepo/metadata_downloader.c | 1 +
18 1 file changed, 1 insertion(+)
19
20diff --git a/librepo/metadata_downloader.c b/librepo/metadata_downloader.c
21index 123c77b..6604255 100644
22--- a/librepo/metadata_downloader.c
23+++ b/librepo/metadata_downloader.c
24@@ -24,6 +24,7 @@
25 #include <assert.h>
26 #include <string.h>
27 #include <errno.h>
28+#include <unistd.h>
29 #include <sys/stat.h>
30
31 #include "librepo/librepo.h"
32--
332.37.2
34