osmo_io: Dont use __linux__ but !EMBEDDED

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
This commit is contained in:
Harald Welte 2024-03-14 21:27:40 +01:00
parent 9c0004ad0d
commit fab993bd31
2 changed files with 4 additions and 4 deletions

View File

@ -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) */

View File

@ -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 */