From f624546ed1336ef2c092a254fddea6b904a9e274 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 9 Oct 2017 14:35:03 +0200 Subject: Fix build on older systems Make sure GRND_NONBLOCK is always defined, even when using syscall directly. Change-Id: I1bcac37ee1847596b49122f9307bd2689ba71b1b Related: OS#1694 --- src/gsm/gsm_utils.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gsm') diff --git a/src/gsm/gsm_utils.c b/src/gsm/gsm_utils.c index f572c643..e3f792ef 100644 --- a/src/gsm/gsm_utils.c +++ b/src/gsm/gsm_utils.c @@ -101,6 +101,9 @@ #include #elif HAVE_DECL_SYS_GETRANDOM #include +#ifndef GRND_NONBLOCK +#define GRND_NONBLOCK 0x0001 +#endif #endif /* ETSI GSM 03.38 6.2.1 and 6.2.1.1 default alphabet -- cgit v1.2.3