[gnutls-devel] GnuTLS | <gnutls/socket.h> tries to include <sys/socket.h> on MinGW (#1382)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Tue Jun 28 09:52:58 CEST 2022

Richard W_M_ Jones commented:

On Windows, <ws2tcpip.h> defines `socklen_t` as:
typedef int socklen_t;

BTW on Fedora you can easily try cross-compiling gnutls for Windows, like this:

$ sudo dnf builddep mingw64-gnutls
$ mingw64-configure --with-included-unistring
$ make
(The current `configure.ac` requires libev even though it's supposed to be an optional dependency, so I had to chop that out first.  This seems like a bug in the configure script.)

You can then try compiling test programs using mingw64-gcc.

Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1382#note_1008172570
You're receiving this email because of your account on gitlab.com.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20220628/ff2c8315/attachment.html>

More information about the Gnutls-devel mailing list