Cleanup MSG_DONTWAIT
[fio.git] / engines / net.c
index c0a793e86cb8d7f38dfff1601ae218b2eb6d387a..0566a618254638f77bedc5d46c2ec80c3eb8ac73 100644 (file)
@@ -223,7 +223,7 @@ static int fio_netio_splice_out(struct thread_data *td, struct io_u *io_u)
 static int fio_netio_send(struct thread_data *td, struct io_u *io_u)
 {
        struct netio_data *nd = td->io_ops->data;
-       int ret, flags = MSG_DONTWAIT;
+       int ret, flags = OS_MSG_DONTWAIT;
 
        do {
                if (nd->net_protocol == IPPROTO_UDP) {
@@ -251,7 +251,7 @@ static int fio_netio_send(struct thread_data *td, struct io_u *io_u)
                if (ret <= 0)
                        break;
 
-               flags &= ~MSG_DONTWAIT;
+               flags &= ~OS_MSG_DONTWAIT;
        } while (1);
 
        return ret;
@@ -276,7 +276,7 @@ static int is_udp_close(struct io_u *io_u, int len)
 static int fio_netio_recv(struct thread_data *td, struct io_u *io_u)
 {
        struct netio_data *nd = td->io_ops->data;
-       int ret, flags = MSG_DONTWAIT;
+       int ret, flags = OS_MSG_DONTWAIT;
 
        do {
                if (nd->net_protocol == IPPROTO_UDP) {
@@ -299,7 +299,7 @@ static int fio_netio_recv(struct thread_data *td, struct io_u *io_u)
                ret = poll_wait(td, io_u->file->fd, POLLIN);
                if (ret <= 0)
                        break;
-               flags &= ~MSG_DONTWAIT;
+               flags &= ~OS_MSG_DONTWAIT;
                flags |= MSG_WAITALL;
        } while (1);