aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-extended/fuse-overlayfs/fuse-overlayfs/0001-utils-Add-missing-include-on-limits.h.patch
blob: cd504ce5a9bcf7ccc480df9181aebe376575fb60 (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
30
31
32
33
34
35
36
From b48e958aaecfdfc3bb48db082a548a09d6487181 Mon Sep 17 00:00:00 2001
From: Andrei Gherzan <andrei.gherzan@huawei.com>
Date: Wed, 13 Jul 2022 12:05:07 +0200
Subject: [PATCH] utils: Add missing include on limits.h

This happens to not be an issue with glibc because it gets indirectly
included via dirent.h:

.. /usr/include/dirent.h
[...]
..... /usr/include/linux/limits.h

When using the musl libc implementation, that is not the case anymore
and the build fails.

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
Upstream-Status: Submitted [https://github.com/containers/fuse-overlayfs/pull/362]
---
 utils.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/utils.h b/utils.h
index 13a177e..6fbc328 100644
--- a/utils.h
+++ b/utils.h
@@ -32,6 +32,7 @@
 # include <sys/types.h>
 # include <fcntl.h>
 # include "fuse-overlayfs.h"
+# include <limits.h>
 
 # define XATTR_OVERRIDE_STAT "user.fuseoverlayfs.override_stat"
 # define XATTR_PRIVILEGED_OVERRIDE_STAT "security.fuseoverlayfs.override_stat"
-- 
2.25.1