aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2024-03-14 21:27:40 +0100
committerHarald Welte <laforge@osmocom.org>2024-03-15 21:29:35 +0100
commitfab993bd316cef2191ab26d5ae01792ff40d7745 (patch)
tree1f6f18a4d54825e6f7876595fc1b4f1337621708
parent9c0004ad0da4af2365be5c6734ba9b8c1c4eec33 (diff)
osmo_io: Dont use __linux__ but !EMBEDDEDHEADmaster
osmo_io (unlike its io_uring backend) is not linux specific, so putting it in an "#ifdef __linux__" block is plain wrong. A side-effect is that all our doxygen comments are not processed as __linux__ is not set while doxygen parses the source file. Change-Id: I260443ba3cd0bb81dade434208dea4ea70fe8ad8
-rw-r--r--src/core/osmo_io.c4
-rw-r--r--src/core/osmo_io_poll.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/core/osmo_io.c b/src/core/osmo_io.c
index 57eba6cb..745d7839 100644
--- a/src/core/osmo_io.c
+++ b/src/core/osmo_io.c
@@ -21,7 +21,7 @@
*/
#include "../config.h"
-#if defined(__linux__)
+#ifndef EMBEDDED
#include <fcntl.h>
#include <stdio.h>
@@ -934,4 +934,4 @@ void osmo_iofd_notify_connected(struct osmo_io_fd *iofd)
}
-#endif /* defined(__linux__) */
+#endif /* ifndef(EMBEDDED) */
diff --git a/src/core/osmo_io_poll.c b/src/core/osmo_io_poll.c
index fae552cb..c4bb376d 100644
--- a/src/core/osmo_io_poll.c
+++ b/src/core/osmo_io_poll.c
@@ -21,7 +21,7 @@
*/
#include "../config.h"
-#if defined(__linux__)
+#ifndef EMBEDDED
#include <errno.h>
#include <stdio.h>
@@ -198,4 +198,4 @@ const struct iofd_backend_ops iofd_poll_ops = {
.notify_connected = iofd_poll_notify_connected,
};
-#endif /* defined(__linux__) */
+#endif /* ifndef EMBEDDED */