diff options
author | Daniel Stenberg <daniel@haxx.se> | 2012-03-17 23:02:21 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-03-17 23:02:21 +0100 |
commit | ad77420ac761b8a1ab20792ae4dc2f88208776a2 (patch) | |
tree | 171f64e7b03b5c3db16324a5448f285c0b617fa8 /lib/nonblock.c | |
parent | 804da995c5ed9df4d28690fba3d5256f45d75ef8 (diff) | |
download | curl-ad77420ac761b8a1ab20792ae4dc2f88208776a2.tar.gz |
lwip: basic checks and macros for compatiblity
Diffstat (limited to 'lib/nonblock.c')
-rw-r--r-- | lib/nonblock.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/nonblock.c b/lib/nonblock.c index 529ce8bca..68ff2f3b5 100644 --- a/lib/nonblock.c +++ b/lib/nonblock.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -61,11 +61,11 @@ int curlx_nonblock(curl_socket_t sockfd, /* operate on this */ /* most recent unix versions */ int flags; - flags = fcntl(sockfd, F_GETFL, 0); + flags = sfcntl(sockfd, F_GETFL, 0); if(nonblock) - return fcntl(sockfd, F_SETFL, flags | O_NONBLOCK); + return sfcntl(sockfd, F_SETFL, flags | O_NONBLOCK); else - return fcntl(sockfd, F_SETFL, flags & (~O_NONBLOCK)); + return sfcntl(sockfd, F_SETFL, flags & (~O_NONBLOCK)); #elif defined(HAVE_IOCTL_FIONBIO) |