diff options
-rw-r--r-- | recipes-graphics/xorg-lib/libxdmcp/socket.patch | 35 | ||||
-rw-r--r-- | recipes-graphics/xorg-lib/libxdmcp_%.bbappend | 3 |
2 files changed, 38 insertions, 0 deletions
diff --git a/recipes-graphics/xorg-lib/libxdmcp/socket.patch b/recipes-graphics/xorg-lib/libxdmcp/socket.patch new file mode 100644 index 0000000..a4c389e --- /dev/null +++ b/recipes-graphics/xorg-lib/libxdmcp/socket.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | Upstream-Status: Backport | ||
2 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
3 | |||
4 | From b10f382e3aa2e86cd5a2bc27d6758da55f0ab1f6 Mon Sep 17 00:00:00 2001 | ||
5 | From: Jon TURNEY <jon.turney@dronecode.org.uk> | ||
6 | Date: Sat, 13 Sep 2014 20:28:38 +0100 | ||
7 | Subject: Link with winsock library for socket functions on MinGW | ||
8 | |||
9 | Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> | ||
10 | Reviewed-by: David Macek <david.macek.0@gmail.com> | ||
11 | --- | ||
12 | configure.ac | 8 ++++++++ | ||
13 | 1 file changed, 8 insertions(+) | ||
14 | |||
15 | diff --git a/configure.ac b/configure.ac | ||
16 | index 608bab9..2288502 100644 | ||
17 | --- a/configure.ac | ||
18 | +++ b/configure.ac | ||
19 | @@ -55,6 +55,14 @@ AC_PROG_LN_S | ||
20 | # Checks for libraries. | ||
21 | AC_SEARCH_LIBS([recvfrom],[socket]) | ||
22 | |||
23 | +case $host_os in | ||
24 | + *mingw*) | ||
25 | + AC_CHECK_LIB([ws2_32],[main]) | ||
26 | + ;; | ||
27 | + *) | ||
28 | + ;; | ||
29 | +esac | ||
30 | + | ||
31 | # Checks for library functions. | ||
32 | AC_CHECK_LIB([bsd], [arc4random_buf]) | ||
33 | AC_CHECK_FUNCS([srand48 lrand48 arc4random_buf]) | ||
34 | -- | ||
35 | cgit v1.1 | ||
diff --git a/recipes-graphics/xorg-lib/libxdmcp_%.bbappend b/recipes-graphics/xorg-lib/libxdmcp_%.bbappend new file mode 100644 index 0000000..b9e4746 --- /dev/null +++ b/recipes-graphics/xorg-lib/libxdmcp_%.bbappend | |||
@@ -0,0 +1,3 @@ | |||
1 | FILESEXTRAPATHS_prepend_mingw32 := "${THISDIR}/${BPN}:" | ||
2 | |||
3 | SRC_URI_append_mingw32 = " file://socket.patch" | ||