Skip to content
Snippets Groups Projects
Commit 9772bb65 authored by Alexandre Lision's avatar Alexandre Lision
Browse files

video: Add missing header for android

SOCK_NONBLOCK is not useable directly in android

Refs #45538
parent fd0645dd
No related branches found
No related tags found
No related merge requests found
...@@ -43,6 +43,10 @@ ...@@ -43,6 +43,10 @@
#include <sys/socket.h> #include <sys/socket.h>
#include <netdb.h> #include <netdb.h>
#if defined(__ANDROID__) && !defined(SOCK_NONBLOCK)
#include <asm-generic/fcntl.h>
# define SOCK_NONBLOCK O_NONBLOCK
#endif
namespace { namespace {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment