Description: Change Q_OS_LINUX ifdefs to __GLIBC__
 There are a number of #ifdef clauses in the sources that are checking
 for Linux.  This means arches such as kFreeBSD fail.  The correct check
 is for __GLIBC__
Author: Craig Small <csmall@debian.org>
Bug-Debian: http://bugs.debian.org/644592
--- a/src/TCommandLine.cpp
+++ b/src/TCommandLine.cpp
@@ -34,7 +34,7 @@
 
 {
     QString path;
-#ifdef Q_OS_LINUX
+#ifdef __GLIBC__
     path = "/usr/share/hunspell/";
 #else
     path = "./";
--- a/src/dlgProfilePreferences.cpp
+++ b/src/dlgProfilePreferences.cpp
@@ -56,7 +56,7 @@
     dictList->setSelectionMode( QAbstractItemView::SingleSelection );
     enableSpellCheck->setChecked( pH->mEnableSpellCheck );
 
-#ifdef Q_OS_LINUX
+#ifdef __GLIBC__
     QDir dir( "/usr/share/hunspell/" );
 #else
     QDir dir( "./" );
--- a/src/mudlet.cpp
+++ b/src/mudlet.cpp
@@ -97,7 +97,7 @@
 , mpMusicBox2(Phonon::createPlayer(Phonon::MusicCategory) )
 , mpMusicBox3(Phonon::createPlayer(Phonon::MusicCategory) )
 , mpMusicBox4(Phonon::createPlayer(Phonon::MusicCategory) )
-#ifdef Q_OS_LINUX
+#ifdef __GLIBC__
     , version( "Mudlet 2.1" )
 #endif
 #ifdef Q_OS_MAC
--- a/src/TLuaInterpreter.cpp
+++ b/src/TLuaInterpreter.cpp
@@ -4119,7 +4119,7 @@
     return 0;
 }
 
-#ifdef Q_OS_LINUX
+#ifdef __GLIBC__
     #include <phonon>
 #else
     #include <Phonon>
--- a/src/TConsole.cpp
+++ b/src/TConsole.cpp
@@ -960,7 +960,7 @@
     else if( mIsSubConsole )
     {
         mDisplayFont.setStyleStrategy( (QFont::StyleStrategy)(QFont::NoAntialias | QFont::PreferQuality ) );
-#if defined(Q_OS_MAC) || (defined(Q_OS_LINUX) && QT_VERSION >= 0x040800)
+#if defined(Q_OS_MAC) || (defined(__GLIBC__) && QT_VERSION >= 0x040800)
         QPixmap pixmap = QPixmap( 2000, 600 );
         QPainter p(&pixmap);
         mDisplayFont.setLetterSpacing( QFont::AbsoluteSpacing, 0 );
@@ -1004,7 +1004,7 @@
             mpHost->mDisplayFont.setStyleStrategy( (QFont::StyleStrategy)( QFont::PreferAntialias | QFont::PreferQuality ) );
         mpHost->mDisplayFont.setFixedPitch(true);
         mDisplayFont.setFixedPitch(true);
-#if defined(Q_OS_MAC) || (defined(Q_OS_LINUX) && QT_VERSION >= 0x040800)
+#if defined(Q_OS_MAC) || (defined(__GLIBC__) && QT_VERSION >= 0x040800)
         QPixmap pixmap = QPixmap( 2000, 600 );
         QPainter p(&pixmap);
         QFont _font = mpHost->mDisplayFont;
--- a/src/TTextEdit.cpp
+++ b/src/TTextEdit.cpp
@@ -68,7 +68,7 @@
         }
 
         mpHost->mDisplayFont.setFixedPitch(true);
-#if defined(Q_OS_MAC) || (defined(Q_OS_LINUX) && QT_VERSION >= 0x040800)
+#if defined(Q_OS_MAC) || (defined(__GLIBC__) && QT_VERSION >= 0x040800)
         QPixmap pixmap = QPixmap( mScreenWidth*mFontWidth*2, mFontHeight*2 );
         QPainter p(&pixmap);
         p.setFont(mpHost->mDisplayFont);
@@ -89,7 +89,7 @@
         mFontWidth = QFontMetrics( mDisplayFont ).width( QChar('W') );
         mScreenWidth = 100;
         mDisplayFont.setFixedPitch(true);
-#if defined(Q_OS_MAC) || (defined(Q_OS_LINUX) && QT_VERSION >= 0x040800)
+#if defined(Q_OS_MAC) || (defined(__GLIBC__) && QT_VERSION >= 0x040800)
         QPixmap pixmap = QPixmap( mScreenWidth*mFontWidth*2, mFontHeight*2 );
         QPainter p(&pixmap);
         p.setFont(mDisplayFont);
@@ -191,7 +191,7 @@
     mBgColor = QColor(0,0,0);
     mDisplayFont = QFont("Bitstream Vera Sans Mono", 10, QFont::Courier);
 //    mDisplayFont.setWordSpacing( 0 );
-#if defined(Q_OS_MAC) || (defined(Q_OS_LINUX) && QT_VERSION >= 0x040800)
+#if defined(Q_OS_MAC) || (defined(__GLIBC__) && QT_VERSION >= 0x040800)
         QPixmap pixmap = QPixmap( mScreenWidth*mFontWidth*2, mFontHeight*2 );
         QPainter p(&pixmap);
         p.setFont(mDisplayFont);
@@ -247,7 +247,7 @@
         mFontDescent = QFontMetrics( mDisplayFont ).descent();
         mFontAscent = QFontMetrics( mDisplayFont ).ascent();
         mFontHeight = mFontAscent + mFontDescent;
-#if defined(Q_OS_MAC) || (defined(Q_OS_LINUX) && QT_VERSION >= 0x040800)
+#if defined(Q_OS_MAC) || (defined(__GLIBC__) && QT_VERSION >= 0x040800)
         QPixmap pixmap = QPixmap( 2000,600 );
         QPainter p(&pixmap);
         mDisplayFont.setLetterSpacing(QFont::AbsoluteSpacing, 0);
@@ -270,7 +270,7 @@
         mFontHeight = mFontAscent + mFontDescent;
         mBgColor = mpHost->mBgColor;
         mFgColor = mpHost->mFgColor;
-#if defined(Q_OS_MAC) || (defined(Q_OS_LINUX) && QT_VERSION >= 0x040800)
+#if defined(Q_OS_MAC) || (defined(__GLIBC__) && QT_VERSION >= 0x040800)
         QPixmap pixmap = QPixmap( mScreenWidth*mFontWidth*2, mFontHeight*2 );
         QPainter p(&pixmap);
         mpHost->mDisplayFont.setLetterSpacing(QFont::AbsoluteSpacing, 0);
@@ -292,7 +292,7 @@
         mFontDescent = QFontMetrics( mDisplayFont ).descent();
         mFontAscent = QFontMetrics( mDisplayFont ).ascent();
         mFontHeight = mFontAscent + mFontDescent;
-#if defined(Q_OS_MAC) || (defined(Q_OS_LINUX) && QT_VERSION >= 0x040800)
+#if defined(Q_OS_MAC) || (defined(__GLIBC__) && QT_VERSION >= 0x040800)
         QPixmap pixmap = QPixmap( mScreenWidth*mFontWidth*2, mFontHeight*2 );
         QPainter p(&pixmap);
         mDisplayFont.setLetterSpacing(QFont::AbsoluteSpacing, 0);
@@ -467,7 +467,7 @@
         font.setBold( isBold );
         font.setUnderline( isUnderline );
         font.setItalic( isItalics );
-#if defined(Q_OS_MAC) || (defined(Q_OS_LINUX) && QT_VERSION >= 0x040800)
+#if defined(Q_OS_MAC) || (defined(__GLIBC__) && QT_VERSION >= 0x040800)
         font.setLetterSpacing(QFont::AbsoluteSpacing, mLetterSpacing);
 #endif
         painter.setFont( font );
@@ -476,7 +476,7 @@
     {
         painter.setPen( fgColor );
     }
-#if defined(Q_OS_MAC) || (defined(Q_OS_LINUX) && QT_VERSION >= 0x040800)
+#if defined(Q_OS_MAC) || (defined(__GLIBC__) && QT_VERSION >= 0x040800)
     QPointF _p(rect.x(), rect.bottom()-mFontDescent);
     painter.drawText( _p, text );
 #else
