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

OSX: define SOCK_NONBLOCK as O_NONBLOCK

We already provided this mecanism for ANDROID
O_NONBLOCK is declared in fcntl.h

Refs #64465

Change-Id: Ib66f9f6e4b0e375a720532fe7784be73b2d59a4d
parent 8c457441
No related branches found
No related tags found
No related merge requests found
......@@ -44,11 +44,16 @@
#include <sys/socket.h>
#include <netdb.h>
#if defined(__ANDROID__) && !defined(SOCK_NONBLOCK)
#ifdef __ANDROID__
#include <asm-generic/fcntl.h>
#define SOCK_NONBLOCK O_NONBLOCK
#endif
#ifdef __APPLE__
#include <fcntl.h>
#define SOCK_NONBLOCK O_NONBLOCK
#endif
static const int NET_POLL_TIMEOUT = 100; /* poll() timeout in ms */
static int
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment