From 581717cfb0e35c041246da0c0c591a6e9f7a40e5 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Wed, 2 May 2018 21:03:45 +0200 Subject: [PATCH] Fix getrandom call in kcapi-rng.c _GNU_SOURCE must be defined and unistd.h must be included to be able to use getrandom Signed-off-by: Fabrice Fontaine [Upstream status: https://github.com/smuellerDD/libkcapi/pull/56] --- lib/kcapi-rng.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/kcapi-rng.c b/lib/kcapi-rng.c index 45f4d18..9ceabd4 100644 --- a/lib/kcapi-rng.c +++ b/lib/kcapi-rng.c @@ -18,6 +18,8 @@ * DAMAGE. */ +#define _GNU_SOURCE +#include #include #ifdef HAVE_GETRANDOM #include -- 2.14.1