aboutsummaryrefslogtreecommitdiff
path: root/lib/setup_once.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2012-03-17 23:02:21 +0100
committerDaniel Stenberg <daniel@haxx.se>2012-03-17 23:02:21 +0100
commitad77420ac761b8a1ab20792ae4dc2f88208776a2 (patch)
tree171f64e7b03b5c3db16324a5448f285c0b617fa8 /lib/setup_once.h
parent804da995c5ed9df4d28690fba3d5256f45d75ef8 (diff)
lwip: basic checks and macros for compatiblity
Diffstat (limited to 'lib/setup_once.h')
-rw-r--r--lib/setup_once.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/setup_once.h b/lib/setup_once.h
index 8bdb472df..4137f374c 100644
--- a/lib/setup_once.h
+++ b/lib/setup_once.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2011, 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
@@ -239,11 +239,22 @@ struct timeval {
# define sclose(x) closesocket((x))
#elif defined(HAVE_CLOSESOCKET_CAMEL)
# define sclose(x) CloseSocket((x))
+#elif defined(USE_LWIPSOCK)
+# define sclose(x) lwip_close((x))
#else
# define sclose(x) close((x))
#endif
/*
+ * Stack-independent version of fcntl() on sockets:
+ */
+#if defined(USE_LWIPSOCK)
+# define sfcntl lwip_fcntl
+#else
+# define sfcntl fcntl
+#endif
+
+/*
* Uppercase macro versions of ANSI/ISO is*() functions/macros which
* avoid negative number inputs with argument byte codes > 127.
*/