  if [ "x$THREAD" = "xyes" ]
  then
     cat >src-mt.mk <<EOF
---- qt-2.3.9-snapshot-20050114/src/kernel/qgfxlinuxfb_qws.cpp~devfs
-+++ qt-2.3.9-snapshot-20050114/src/kernel/qgfxlinuxfb_qws.cpp
+Index: qt-2.3.10/src/kernel/qgfxlinuxfb_qws.cpp
+===================================================================
+--- qt-2.3.10.orig/src/kernel/qgfxlinuxfb_qws.cpp	2005-07-03 12:26:13.000000000 +0200
++++ qt-2.3.10/src/kernel/qgfxlinuxfb_qws.cpp	2005-07-03 12:30:36.000000000 +0200
 @@ -101,11 +101,19 @@
  bool QLinuxFbScreen::connect( const QString &displaySpec )
  {

     const char** dev=tt;
     while (*dev) {
 	int tty=::open(*dev,O_WRONLY);
@@ -792,7 +816,11 @@
     fb_var_screeninfo vinfo;
 
     if (ioctl(fd, FBIOGET_FSCREENINFO, &finfo)) {
+#ifdef QT_QWS_DEVFS
+	perror("reading /dev/fb/0");
+#else
 	perror("reading /dev/fb0");
+#endif
 	qFatal("Error reading fixed information");
     }
 
--- qt-2.3.9-snapshot-20050114/src/kernel/qkeyboard_qws.cpp~devfs
+++ qt-2.3.9-snapshot-20050114/src/kernel/qkeyboard_qws.cpp
@@ -1192,7 +1192,11 @@
 
 QWSTtyKeyboardHandler::QWSTtyKeyboardHandler(const QString& device)
 {

 
     if ( kbdFD >= 0 ) {
 	QSocketNotifier *notifier;
Index: qt-2.3.10/src/kernel/qwindowsystem_qws.cpp
===================================================================
--- qt-2.3.10.orig/src/kernel/qwindowsystem_qws.cpp	2005-07-03 12:26:11.000000000 +0200
+++ qt-2.3.10/src/kernel/qwindowsystem_qws.cpp	2005-07-03 12:30:36.000000000 +0200
@@ -836,7 +836,11 @@
     void openDevice()
     {
