Alexandre Julliard : winmm: Disable system thread if poll() support is missing.

Alexandre Julliard julliard at winehq.org
Mon Feb 9 10:29:10 CST 2009


Module: wine
Branch: master
Commit: 7ca85aa9eab5f028c5050adec7145492a208c214
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7ca85aa9eab5f028c5050adec7145492a208c214

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Feb  6 22:31:56 2009 +0100

winmm: Disable system thread if poll() support is missing.

---

 dlls/winmm/time.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/dlls/winmm/time.c b/dlls/winmm/time.c
index 48ca3e8..23d0cdc 100644
--- a/dlls/winmm/time.c
+++ b/dlls/winmm/time.c
@@ -116,6 +116,7 @@ static inline void link_timer( WINE_TIMERENTRY *timer )
 #define MMSYSTIME_MININTERVAL (1)
 #define MMSYSTIME_MAXINTERVAL (65535)
 
+#ifdef HAVE_POLL
 
 /**************************************************************************
  *           TIME_MMSysTimeCallback
@@ -254,6 +255,15 @@ static void TIME_MMTimeStart(void)
     }
 }
 
+#else  /* HAVE_POLL */
+
+static void TIME_MMTimeStart(void)
+{
+    FIXME( "not starting system thread\n" );
+}
+
+#endif  /* HAVE_POLL */
+
 /**************************************************************************
  * 				TIME_MMTimeStop
  */




More information about the wine-cvs mailing list