diff --git a/frontend/drivers/platform_unix.c b/frontend/drivers/platform_unix.c index 1262709da3..66dd728ad5 100644 --- a/frontend/drivers/platform_unix.c +++ b/frontend/drivers/platform_unix.c @@ -24,6 +24,7 @@ #include #include +#include #include #include @@ -35,7 +36,6 @@ #define INOTIFY_BUF_LEN (1024 * (sizeof(struct inotify_event) + 16)) #include -#include #define VECTOR_LIST_TYPE int #define VECTOR_LIST_NAME int @@ -2346,7 +2346,7 @@ static void frontend_unix_watch_path_for_changes(struct string_list *list, int f return; } - if (!socket_nonblock(fd)) + if (fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) | O_NONBLOCK)) { RARCH_WARN("watch_path_for_changes: Could not set socket to non-blocking.\n"); return;