summaryrefslogtreecommitdiffstats
path: root/src/application.c
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/application.c
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/application.c')
-rw-r--r--src/application.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/application.c b/src/application.c
index 881f0117..9c3fe52b 100644
--- a/src/application.c
+++ b/src/application.c
@@ -81,10 +81,16 @@ static void sighup_hdlr(int signal)
void osmo_init_ignore_signals(void)
{
/* Signals that by default would terminate */
+#ifdef SIGPIPE
signal(SIGPIPE, SIG_IGN);
+#endif
signal(SIGALRM, SIG_IGN);
+#ifdef SIGHUP
signal(SIGHUP, &sighup_hdlr);
+#endif
+#ifdef SIGIO
signal(SIGIO, SIG_IGN);
+#endif
}
/*! \brief Initialize the osmocom logging framework