From e15ac060e7ae78d4c3569d7fc9071bcf49807e05 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 4 Dec 2014 14:15:36 +0100 Subject: 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. --- src/gsm/a5.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gsm') 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 +/* 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) -- cgit v1.2.3