From 77562355627ee85cf2f913e8720bd35482b5fe09 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 20 Feb 2010 20:14:01 +0100 Subject: 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. --- libosmocore/tests/timer/timer_test.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libosmocore/tests/timer/timer_test.c') diff --git a/libosmocore/tests/timer/timer_test.c b/libosmocore/tests/timer/timer_test.c index ec29ef048..f1b4ad7fb 100644 --- a/libosmocore/tests/timer/timer_test.c +++ b/libosmocore/tests/timer/timer_test.c @@ -23,6 +23,8 @@ #include #include +#include "../config.h" + static void timer_fired(unsigned long data); static struct timer_list timer_one = { @@ -64,7 +66,11 @@ int main(int argc, char** argv) bsc_schedule_timer(&timer_two, 5, 0); bsc_schedule_timer(&timer_three, 4, 0); +#ifdef HAVE_SYS_SELECT_H while (1) { bsc_select_main(0); } +#else + printf("Select not supported on this platform!\n"); +#endif } -- cgit v1.2.3