From e4ceedf9a70632b395cf1b64af7d08adf566eb4c Mon Sep 17 00:00:00 2001
From: Jon TURNEY <jon.turney@dronecode.org.uk>
Date: Thu, 12 Jan 2012 13:28:52 +0000
Subject: [PATCH] Fix linking issues when building units tests when only the
 XWin DDX is built on cygwin


Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
---
 test/Makefile.am |    5 +++++
 test/ddxstubs.c  |    6 ++++++
 2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/test/Makefile.am b/test/Makefile.am
index 41321ee..bb15902 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -98,6 +98,11 @@ libxservertest_la_LIBADD += \
 TEST_LDADD += -lXplugin
 endif
 
+if XWIN_MULTIWINDOWEXTWM
+libxservertest_la_LIBADD += \
+            $(top_builddir)/miext/rootless/librootless.la
+endif
+
 endif
 libxservertest_la_LIBADD += \
             $(top_builddir)/mi/libmi.la \
diff --git a/test/ddxstubs.c b/test/ddxstubs.c
index 7290886..306d6da 100644
--- a/test/ddxstubs.c
+++ b/test/ddxstubs.c
@@ -82,3 +82,9 @@ void darwinEvents_lock(void) {
 void darwinEvents_unlock(void) {
 }
 #endif
+
+#ifdef DDXBEFORERESET
+void
+ddxBeforeReset(void) {
+}
+#endif
-- 
1.7.5.1
