summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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