Don't call fcntl functions if we do not HAVE_FCNTL support built in.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-08-05 10:13:57 +01:00
parent 35e1ddc6f6
commit 016e365424
1 changed files with 2 additions and 0 deletions

View File

@ -150,7 +150,9 @@ _server_connect(void)
*/
}
#ifdef HAVE_FCNTL
fcntl(s, F_SETFL, O_NONBLOCK);
#endif
socketfd = s;