cedric pushed a commit to branch master.

commit 27642f20fdc8c6874f51712c8a07529943b0c311
Author: Cedric Bail <[email protected]>
Date:   Sun Mar 10 19:45:24 2013 +0900

    evas: fcntl use should be #ifdef protected.
---
 src/lib/evas/canvas/evas_async_events.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/lib/evas/canvas/evas_async_events.c 
b/src/lib/evas/canvas/evas_async_events.c
index ec4be9f..ed8a551 100644
--- a/src/lib/evas/canvas/evas_async_events.c
+++ b/src/lib/evas/canvas/evas_async_events.c
@@ -74,7 +74,9 @@ evas_async_events_init(void)
    _fd_read = filedes[0];
    _fd_write = filedes[1];
 
+#ifdef HAVE_EXECVP
    fcntl(_fd_read, F_SETFL, O_NONBLOCK);
+#endif
 
    eina_lock_new(&async_lock);
    eina_inarray_step_set(&async_queue, sizeof (Eina_Inarray), sizeof 
(Evas_Event_Async), 16);
@@ -193,12 +195,16 @@ evas_async_events_process(void)
 static void
 _evas_async_events_fd_blocking_set(Eina_Bool blocking)
 {
+#ifdef HAVE_EXECVP
    long flags = fcntl(_fd_read, F_GETFL);
 
    if (blocking) flags &= ~O_NONBLOCK;
    else flags |= O_NONBLOCK;
 
    fcntl(_fd_read, F_SETFL, flags);
+#else
+   (void) blocking;
+#endif
 }
 
 int

-- 

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev

Reply via email to