aboutsummaryrefslogtreecommitdiffstats
path: root/libosmocore/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@netfilter.org>2010-02-20 20:14:01 +0100
committerHarald Welte <laforge@netfilter.org>2010-02-20 20:14:01 +0100
commit77562355627ee85cf2f913e8720bd35482b5fe09 (patch)
tree2892a0ca0b61564d0f514f8bf59d2320e5cecbd0 /libosmocore/src
parent75135413cbae2bf2d4e7c93f6f329f8cb1964b18 (diff)
make sure libosmocom builds when cross-compiling for ARM without OS
This is required to build the library and be able to use it from within OsmocomBB.
Diffstat (limited to 'libosmocore/src')
-rw-r--r--libosmocore/src/gsm_utils.c4
-rw-r--r--libosmocore/src/select.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/libosmocore/src/gsm_utils.c b/libosmocore/src/gsm_utils.c
index 85f78391e..b0a66a683 100644
--- a/libosmocore/src/gsm_utils.c
+++ b/libosmocore/src/gsm_utils.c
@@ -31,6 +31,8 @@
#include <stdio.h>
#include <errno.h>
+#include "../config.h"
+
/* GSM 03.38 6.2.1 Charachter packing */
int gsm_7bit_decode(char *text, const uint8_t *user_data, uint8_t length)
{
@@ -190,6 +192,7 @@ uint8_t dbm2rxlev(int dbm)
return rxlev;
}
+#ifdef HAVE_EXECINFO_H
#include <execinfo.h>
void generate_backtrace()
{
@@ -209,3 +212,4 @@ void generate_backtrace()
free(strings);
}
+#endif
diff --git a/libosmocore/src/select.c b/libosmocore/src/select.c
index 46a0b9617..4f5d7ed95 100644
--- a/libosmocore/src/select.c
+++ b/libosmocore/src/select.c
@@ -23,6 +23,8 @@
#include <osmocore/linuxlist.h>
#include <osmocore/timer.h>
+#ifdef HAVE_SYS_SELECT_H
+
static int maxfd = 0;
static LLIST_HEAD(bsc_fds);
static int unregistered_count;
@@ -122,3 +124,5 @@ restart:
}
return work;
}
+
+#endif /* _HAVE_SYS_SELECT_H */