From e2640ef763e1335d0eec590ceaeaa390428cfd51 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Thu, 16 Nov 2017 16:29:36 +0100 Subject: gsm: Use correct include for getrandom MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "man getrandom" states sys/random.h is required. Fixes warning below: warning: implicit declaration of function ‘getrandom’; did you mean ‘srandom’? [-Wimplicit-function-declaration] rc = getrandom(out, len, GRND_NONBLOCK); ^~~~~~~~~ Change-Id: I2e73fd018e887893dc5527d6d73644d627eb963a --- src/gsm/gsm_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gsm/gsm_utils.c') diff --git a/src/gsm/gsm_utils.c b/src/gsm/gsm_utils.c index 8464090a..5d8c834e 100644 --- a/src/gsm/gsm_utils.c +++ b/src/gsm/gsm_utils.c @@ -100,7 +100,7 @@ /* FIXME: this can be removed once we bump glibc requirements to 2.25: */ #if defined(__GLIBC__) && (__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 25) -#include +#include #elif HAVE_DECL_SYS_GETRANDOM #include #ifndef GRND_NONBLOCK -- cgit v1.2.3