summaryrefslogtreecommitdiffstats
path: root/src/gsm/a5.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gsm/a5.c')
-rw-r--r--src/gsm/a5.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gsm/a5.c b/src/gsm/a5.c
index de821e89..10a063e2 100644
--- a/src/gsm/a5.c
+++ b/src/gsm/a5.c
@@ -39,6 +39,11 @@
#include <osmocom/gsm/a5.h>
+/* Somme OS (like Nuttx) don't have ENOTSUP */
+#ifndef ENOTSUP
+#define ENOTSUP EINVAL
+#endif
+
/*! \brief Main method to generate a A5/x cipher stream
* \param[in] n Which A5/x method to use
* \param[in] key 8 byte array for the key (as received from the SIM)