summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/gnutls/gnutls/arm_eabi.patch
blob: fe3f031fdccc1cfb3de90169caa416ed50dda999 (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
From 5810d97281bb30edb786de9946e5c13186eff6a2 Mon Sep 17 00:00:00 2001
From: Joe Slater <jslater@windriver.com>
Date: Wed, 25 Jan 2017 13:52:59 -0800
Subject: [PATCH] gnutls: account for ARM_EABI

Certain syscall's are not availabe for arm-eabi, so we eliminate
reference to them.

Upstream-Status: Pending

Signed-off-by: Joe Slater <jslater@windriver.com>
---
 tests/seccomp.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/seccomp.c b/tests/seccomp.c
index 86442a5..03a5aa8 100644
--- a/tests/seccomp.c
+++ b/tests/seccomp.c
@@ -55,7 +55,9 @@ int disable_system_calls(void)
 
 	ADD_SYSCALL(nanosleep, 0);
 	ADD_SYSCALL(clock_nanosleep, 0);
+#if ! defined(__ARM_EABI__)
 	ADD_SYSCALL(time, 0);
+#endif
 	ADD_SYSCALL(getpid, 0);
 	ADD_SYSCALL(gettimeofday, 0);
 #if defined(HAVE_CLOCK_GETTIME)
-- 
2.30.2