[PATCH lib/libXdmcp] Link with winsock library for socket functions on MinGW
Jon TURNEY
jon.turney at dronecode.org.uk
Thu Mar 19 07:18:28 PDT 2015
Signed-off-by: Jon TURNEY <jon.turney at dronecode.org.uk>
---
configure.ac | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/configure.ac b/configure.ac
index d117aa1..21a6048 100644
--- a/configure.ac
+++ b/configure.ac
@@ -55,6 +55,14 @@ AC_PROG_LN_S
# Checks for libraries.
AC_SEARCH_LIBS([recvfrom],[socket])
+case $host_os in
+ *mingw*)
+ AC_CHECK_LIB([ws2_32],[main])
+ ;;
+ *)
+ ;;
+esac
+
# Checks for library functions.
AC_CHECK_LIB([bsd], [arc4random_buf])
AC_CHECK_FUNCS([srand48 lrand48 arc4random_buf])
--
2.3.2
More information about the xorg-devel
mailing list