summaryrefslogtreecommitdiffstats
path: root/package/parted/0003-Include-fcntl.h-to-get-loff_t-definition.patch
blob: 752938ab7f7baf7b1eb607f8dadc377a8db952c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 2078c07d38ee7841b89ac8d81afc5e8bfcd4f703 Mon Sep 17 00:00:00 2001
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Date: Sun, 8 Oct 2017 00:58:58 +0200
Subject: [PATCH] Include <fcntl.h> to get loff_t definition

Patch borrowed from Alpine Linux at
http://git.alpinelinux.org/cgit/aports/plain/main/parted/fix-includes.patch. Solves
build with musl.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 libparted/fs/xfs/platform_defs.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libparted/fs/xfs/platform_defs.h b/libparted/fs/xfs/platform_defs.h
index 2b55752..17023dc 100644
--- a/libparted/fs/xfs/platform_defs.h
+++ b/libparted/fs/xfs/platform_defs.h
@@ -35,6 +35,7 @@
 #define __XFS_PLATFORM_DEFS_H__
 
 #include <stdio.h>
+#include <fcntl.h>
 #include <stdarg.h>
 #include <assert.h>
 #include <endian.h>
-- 
2.14.2

OpenPOWER on IntegriCloud