summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_async_events.c
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@free.fr>2013-03-10 23:09:45 +0900
committerCedric Bail <cedric.bail@free.fr>2013-03-10 23:10:27 +0900
commit8d5e33077e9317fdd0ace25901457084413c5f54 (patch)
tree826ad78bb676d7b782040d20cdcf00af257f7280 /src/lib/evas/canvas/evas_async_events.c
parentaac1bbb017a170ff6892a3a71f1cb2e9f79c778b (diff)
efl: use HAVE_FCNTL around call to fcntl.
Diffstat (limited to 'src/lib/evas/canvas/evas_async_events.c')
-rw-r--r--src/lib/evas/canvas/evas_async_events.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/evas/canvas/evas_async_events.c b/src/lib/evas/canvas/evas_async_events.c
index ed8a551..2bab528 100644
--- a/src/lib/evas/canvas/evas_async_events.c
+++ b/src/lib/evas/canvas/evas_async_events.c
@@ -35,7 +35,7 @@ static int _init_evas_event = 0;
35Eina_Bool 35Eina_Bool
36_evas_fd_close_on_exec(int fd) 36_evas_fd_close_on_exec(int fd)
37{ 37{
38#ifdef HAVE_EXECVP 38#ifdef HAVE_FCNTL
39 int flags; 39 int flags;
40 40
41 flags = fcntl(fd, F_GETFD); 41 flags = fcntl(fd, F_GETFD);
@@ -74,7 +74,7 @@ evas_async_events_init(void)
74 _fd_read = filedes[0]; 74 _fd_read = filedes[0];
75 _fd_write = filedes[1]; 75 _fd_write = filedes[1];
76 76
77#ifdef HAVE_EXECVP 77#ifdef HAVE_FCNTL
78 fcntl(_fd_read, F_SETFL, O_NONBLOCK); 78 fcntl(_fd_read, F_SETFL, O_NONBLOCK);
79#endif 79#endif
80 80
@@ -195,7 +195,7 @@ evas_async_events_process(void)
195static void 195static void
196_evas_async_events_fd_blocking_set(Eina_Bool blocking) 196_evas_async_events_fd_blocking_set(Eina_Bool blocking)
197{ 197{
198#ifdef HAVE_EXECVP 198#ifdef HAVE_FCNTL
199 long flags = fcntl(_fd_read, F_GETFL); 199 long flags = fcntl(_fd_read, F_GETFL);
200 200
201 if (blocking) flags &= ~O_NONBLOCK; 201 if (blocking) flags &= ~O_NONBLOCK;