diff options
author | Yang Tse <yangsita@gmail.com> | 2011-08-04 21:27:29 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2011-08-04 21:27:29 +0200 |
commit | a6ed2b8426675115d6d29bfec4d8597cf715b33c (patch) | |
tree | a73aca9deec5d58a60f800fd523f3b53598146ef /src/setup.h | |
parent | b56bbabee0b49abef4d163b203f6e2e4f6651066 (diff) |
BSD-style lwIP TCP/IP stack support:
Allow compilation of libcurl and curl using BSD-style lwIP on Win32.
In order to compile libcurl and curl with this support it is necessary
to edit files lib/config-win32.h and src/config-win32.h and uncomment
a line to make definition of preprocessor symbol USE_LWIPSOCK visible.
Afterwards you can compile as usual.
In order to use compiled library with BSD-style lwIP TCP/IP stack in
your program it is mandatory that you include lwIP header file <lwip/opt.h>
before including <curl/curl.h> or <curl/multi.h>
Compilation has been verified with lwIP 1.4.0 and contrib-1.4.0 from:
http://download.savannah.gnu.org/releases/lwip/lwip-1.4.0.zip
http://download.savannah.gnu.org/releases/lwip/contrib-1.4.0.zip
Have fun!
Diffstat (limited to 'src/setup.h')
-rw-r--r-- | src/setup.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/setup.h b/src/setup.h index b510fd9b5..d2562a244 100644 --- a/src/setup.h +++ b/src/setup.h @@ -135,6 +135,11 @@ # endif #endif +#ifdef USE_LWIPSOCK +# include <lwip/sockets.h> +# include <lwip/netdb.h> +#endif + #ifdef TPF # include <sys/socket.h> /* change which select is used for the curl command line tool */ |