summaryrefslogtreecommitdiffstats
path: root/recipes/gnutls/files/check_SYS_getrandom.patch
diff options
context:
space:
mode:
authorMikko Gronoff <mikko.gronoff@qt.io>2018-04-19 15:07:18 +0300
committerMikko Gronoff <mikko.gronoff@qt.io>2018-05-08 06:17:28 +0000
commitf3d5b8731a54e1bad92ce5903b5a7dc7f4be6026 (patch)
tree3081b20a01c59725f1a7028de2b8b4cac75d5030 /recipes/gnutls/files/check_SYS_getrandom.patch
parent508b82f75f4090d802e829edebbc0730c96afe28 (diff)
downloadmeta-boot2qt-f3d5b8731a54e1bad92ce5903b5a7dc7f4be6026.tar.gz
poky, meta-mingw: update to latest revision in morty branch
Task-number: QTBUG-67815 Change-Id: I87a26127666d5996aee433fb05af0b2126c85273 Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
Diffstat (limited to 'recipes/gnutls/files/check_SYS_getrandom.patch')
-rw-r--r--recipes/gnutls/files/check_SYS_getrandom.patch36
1 files changed, 0 insertions, 36 deletions
diff --git a/recipes/gnutls/files/check_SYS_getrandom.patch b/recipes/gnutls/files/check_SYS_getrandom.patch
deleted file mode 100644
index 50693bf..0000000
--- a/recipes/gnutls/files/check_SYS_getrandom.patch
+++ /dev/null
@@ -1,36 +0,0 @@
1From f26c3979ab0325edb2e410d287bc501cf00e0ac0 Mon Sep 17 00:00:00 2001
2From: Nikos Mavrogiannopoulos <nmav@redhat.com>
3Date: Mon, 22 Aug 2016 16:32:34 +0200
4Subject: [PATCH] rnd-linux: added check for SYS_getrandom being defined
5
6This allows to compile the getrandom() code in old Linux systems
7which do not have the system call defined.
8---
9
10Upstream-Status: Backport
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12
13 lib/nettle/rnd-linux.c | 6 +++++-
14 1 file changed, 5 insertions(+), 1 deletion(-)
15
16diff --git a/lib/nettle/rnd-linux.c b/lib/nettle/rnd-linux.c
17index d7f07a6..7a24d05 100644
18--- a/lib/nettle/rnd-linux.c
19+++ b/lib/nettle/rnd-linux.c
20@@ -56,7 +56,11 @@ static dev_t _gnutls_urandom_fd_rdev = 0;
21 # else
22 # include <sys/syscall.h>
23 # undef getrandom
24-# define getrandom(dst,s,flags) syscall(SYS_getrandom, (void*)dst, (size_t)s, (unsigned int)flags)
25+# if defined(SYS_getrandom)
26+# define getrandom(dst,s,flags) syscall(SYS_getrandom, (void*)dst, (size_t)s, (unsigned int)flags)
27+# else
28+# define getrandom(dst,s,flags) -1
29+# endif
30 # endif
31
32 static unsigned have_getrandom(void)
33--
34libgit2 0.24.0
35
36