aboutsummaryrefslogtreecommitdiffstats
path: root/src/gsm
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2014-12-04 14:15:36 +0100
committerHarald Welte <laforge@gnumonks.org>2014-12-04 14:15:36 +0100
commite15ac060e7ae78d4c3569d7fc9071bcf49807e05 (patch)
treea90fc81b1197e28b668a98f175543d705edf775f /src/gsm
parent20144f7bc5c04e57da36cd7d7883f576510f0298 (diff)
fix libosmocore build for NuttX target
this fixes some compilation issues with libosmocore under NuttX, particularly as some #defines are missing or some header files are slightly different.
Diffstat (limited to 'src/gsm')
-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)