summaryrefslogtreecommitdiffstats
path: root/src/gsm
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-10-09 14:35:03 +0200
committerHarald Welte <laforge@gnumonks.org>2017-10-10 03:03:58 +0000
commitf624546ed1336ef2c092a254fddea6b904a9e274 (patch)
tree2c59500ef77976542a2e7d4a4b9dca975629511b /src/gsm
parent4335badd0e85341a2515c00e5b73d6a921ecdd1b (diff)
Fix build on older systems
Make sure GRND_NONBLOCK is always defined, even when using syscall directly. Change-Id: I1bcac37ee1847596b49122f9307bd2689ba71b1b Related: OS#1694
Diffstat (limited to 'src/gsm')
-rw-r--r--src/gsm/gsm_utils.c3
1 files changed, 3 insertions, 0 deletions
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 <linux/random.h>
#elif HAVE_DECL_SYS_GETRANDOM
#include <sys/syscall.h>
+#ifndef GRND_NONBLOCK
+#define GRND_NONBLOCK 0x0001
+#endif
#endif
/* ETSI GSM 03.38 6.2.1 and 6.2.1.1 default alphabet