aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 */