From 1923ec11a9c5fa94731fe651447a5a6f981d3ec7 Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Thu, 8 Feb 2018 11:44:26 -0500 Subject: [PATCH] platform_unix: remove HAVE_NETWORKING requirement --- frontend/drivers/platform_unix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;