diff options
author | Bruno Haible <bruno@clisp.org> | 2017-05-10 19:19:51 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2017-05-10 19:19:51 +0200 |
commit | 67d14683778cb3fd8dbfda5a03f5fe407f57389a (patch) | |
tree | 19fc3d2bf61f2514a25a47aee028b0402986004b /doc/windows-sockets.texi | |
parent | 3f67783fb1ff94c6a3732cfbc4850048bcabc4ff (diff) | |
download | gnulib-67d14683778cb3fd8dbfda5a03f5fe407f57389a.tar.gz |
Prepare for reordering sections in the manual.
* doc/gnulib.texi: Move several sections to separate files. Include
these files.
* doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
* doc/obsolete.texi: Likewise.
* doc/extra-tests.texi: Likewise.
* doc/transversal.texi: Likewise.
* doc/namespace.texi: Likewise.
* doc/check-version.texi: Likewise.
* doc/windows-sockets.texi: Likewise.
* doc/windows-libtool.texi: Likewise.
* doc/licenses-texi.texi: Likewise.
* doc/build-automation.texi: Likewise.
* doc/c-locale.texi: Likewise.
Diffstat (limited to 'doc/windows-sockets.texi')
-rw-r--r-- | doc/windows-sockets.texi | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/windows-sockets.texi b/doc/windows-sockets.texi new file mode 100644 index 0000000000..bdace46bd5 --- /dev/null +++ b/doc/windows-sockets.texi @@ -0,0 +1,27 @@ +@node Windows sockets +@section Windows sockets + +There are several issues when building applications that should work +under Windows. The most problematic part is for applications that use +sockets. + +Hopefully, we can add helpful notes to this section that will help you +port your application to Windows using gnulib. + +@subsection Getaddrinfo and WINVER + +This was written for the getaddrinfo module, but may be applicable to +other functions too. + +The getaddrinfo function exists in ws2tcpip.h and -lws2_32 on Windows +XP. The function declaration is present if @code{WINVER >= 0x0501}. +Windows 2000 does not have getaddrinfo in its @file{WS2_32.DLL}. + +Thus, if you want to assume Windows XP or later, you can add +AC_DEFINE(WINVER, 0x0501) to avoid compiling the (partial) getaddrinfo +implementation. + +If you want to support Windows 2000, don't do anything. The +replacement function will open @file{WS2_32.DLL} during run-time to +see if there is a getaddrinfo function available, and use it when +available. |