aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-mac/AppArmor/files/0001-aa_status-Fix-build-issue-with-musl.patch
blob: 239562a458fed0567e95e9b38a32eec0b63962ab (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
From 2bf15cc68f31c9f41962bb60a669ab2b453a039b Mon Sep 17 00:00:00 2001
From: Armin Kuster <akuster808@gmail.com>
Date: Wed, 7 Oct 2020 08:27:11 -0700
Subject: [PATCH] aa_status: Fix build issue with musl

add limits.h

aa_status.c:269:22: error: 'PATH_MAX' undeclared (first use in this function); did you mean 'AF_MAX'?
|   269 |    real_exe = calloc(PATH_MAX + 1, sizeof(char));

Upstream-Status: Pending
Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
 binutils/aa_status.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/binutils/aa_status.c b/binutils/aa_status.c
index 78b03409..41f1954e 100644
--- a/binutils/aa_status.c
+++ b/binutils/aa_status.c
@@ -10,6 +10,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <limits.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/wait.h>
-- 
2.17.1