pkarashchenko commented on a change in pull request #1040:
URL: 
https://github.com/apache/incubator-nuttx-apps/pull/1040#discussion_r819453815



##########
File path: netutils/usrsock_rpmsg/usrsock_rpmsg_server.c
##########
@@ -664,9 +661,9 @@ static int usrsock_rpmsg_accept_handler(struct 
rpmsg_endpoint *ept,
               pthread_mutex_unlock(&priv->mutex);
               if (ret >= 0)
                 {
-                  psock_fcntl(&priv->socks[i], F_SETFL,
-                    psock_fcntl(&priv->socks[i], F_GETFL) | O_NONBLOCK);
+                  int nonblock = 1;
 
+                  psock_ioctl(&priv->socks[i], FIONBIO, &nonblock);

Review comment:
       ```
   Error: usrsock_rpmsg_server.c:666:48: error: 'FIONBIO' undeclared (first use 
in this function)
     666 |                   psock_ioctl(&priv->socks[i], FIONBIO, &nonblock);
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to