From 9772bb6500fbf825a92071b85440a90e2c9e9e53 Mon Sep 17 00:00:00 2001 From: Alexandre Lision <alexandre.lision@savoirfairelinux.com> Date: Wed, 23 Apr 2014 14:43:05 -0400 Subject: [PATCH] video: Add missing header for android SOCK_NONBLOCK is not useable directly in android Refs #45538 --- daemon/src/video/socket_pair.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daemon/src/video/socket_pair.cpp b/daemon/src/video/socket_pair.cpp index d91cac80aa..01e3514b9f 100644 --- a/daemon/src/video/socket_pair.cpp +++ b/daemon/src/video/socket_pair.cpp @@ -43,6 +43,10 @@ #include <sys/socket.h> #include <netdb.h> +#if defined(__ANDROID__) && !defined(SOCK_NONBLOCK) +#include <asm-generic/fcntl.h> +# define SOCK_NONBLOCK O_NONBLOCK +#endif namespace { -- GitLab