On 04/ 6/14 12:45 PM, Yaakov (Cygwin/X) wrote:
From: Yaakov Selkowitz <[email protected]>

As in xserver, FD_SETSIZE must be overridden due to a too-low default,
and symbols must be exported for compatibility with the shared libXfont
stub handling on these platforms.

Signed-off-by: Yaakov Selkowitz <[email protected]>
---
  configure.ac | 6 ++++++
  1 file changed, 6 insertions(+)

diff --git a/configure.ac b/configure.ac
index e604555..e00fee4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -133,6 +133,12 @@ AC_CHECK_FUNCS([daemon])
  #  - xfont >= 1.4.5 required for matching MakeAtom prototypes in fontmisc.h
  PKG_CHECK_MODULES(XFS, xproto >= 7.0.17 xfont >= 1.4.5 xtrans)

+case "$host_os" in
+  cygwin*|mingw*)
+    CFLAGS="$CFLAGS -DFD_SETSIZE=256"
+    LDFLAGS="$LDFLAGS -Wl,--export-all" ;;
+esac
+
  # Transport selection macro from xtrans.m4
  XTRANS_CONNECTION_FLAGS



Reviewed-by: Alan Coopersmith <[email protected]>

--
        -Alan Coopersmith-              [email protected]
         Oracle Solaris Engineering - http://blogs.oracle.com/alanc
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to