summaryrefslogtreecommitdiffstats
path: root/recipes-tpm/trousers/files/0001-tsp_tcsi_param.c-Include-limits.h-for-POSIX_MAX.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-tpm/trousers/files/0001-tsp_tcsi_param.c-Include-limits.h-for-POSIX_MAX.patch')
-rw-r--r--recipes-tpm/trousers/files/0001-tsp_tcsi_param.c-Include-limits.h-for-POSIX_MAX.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes-tpm/trousers/files/0001-tsp_tcsi_param.c-Include-limits.h-for-POSIX_MAX.patch b/recipes-tpm/trousers/files/0001-tsp_tcsi_param.c-Include-limits.h-for-POSIX_MAX.patch
new file mode 100644
index 0000000..c01040d
--- /dev/null
+++ b/recipes-tpm/trousers/files/0001-tsp_tcsi_param.c-Include-limits.h-for-POSIX_MAX.patch
@@ -0,0 +1,36 @@
1From c1b5f33845c56dc7aef769c99758b4f77a041d43 Mon Sep 17 00:00:00 2001
2From: Felix Janda <felix.janda@posteo.de>
3Date: Wed, 31 Aug 2016 22:52:58 -0400
4Subject: [PATCH] tsp_tcsi_param.c: Include <limits.h> for POSIX_MAX
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Use POSIX instead of glibc-specific header.
10Fixes compilation with musl libc.
11
12Signed-off-by: Felix Janda <felix.janda@posteo.de>
13Reviewed-by: Hon Ching(Vicky) Lo <honclo@linux.vnet.ibm.com>
14
15---
16Upstream-Status: Backport [https://sourceforge.net/p/trousers/trousers/ci/59351a56cac1710e89d207dff07eb23bbc644c13/]
17Signed-off-by: André Draszik <adraszik@tycoint.com>
18 src/tspi/tsp_tcsi_param.c | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21diff --git a/src/tspi/tsp_tcsi_param.c b/src/tspi/tsp_tcsi_param.c
22index 670f86f..8f2b4e4 100644
23--- a/src/tspi/tsp_tcsi_param.c
24+++ b/src/tspi/tsp_tcsi_param.c
25@@ -11,7 +11,7 @@
26 #include <stdlib.h>
27 #include <string.h>
28 #include <stdio.h>
29-#include <bits/local_lim.h>
30+#include <limits.h>
31 #include "trousers/tss.h"
32 #include "trousers/trousers.h"
33 #include "trousers_types.h"
34--
352.10.2
36