--- mozilla/gfx/skia/moz.build~
+++ mozilla/gfx/skia/moz.build
@@ -188,10 +188,9 @@ elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'qt
         'SkMMapStream.cpp',
         'SkOSFile.cpp',
     ]
-    if CONFIG['OS_TARGET'] == 'Linux':
+    if CONFIG['MOZ_X11'] == 1 or CONFIG['OS_TARGET'] == 'Linux':
         CPP_SOURCES += [
             'SkFontHost_linux.cpp',
-            'SkFontHost_tables.cpp',
             'SkThread_pthread.cpp',
             'SkTime_Unix.cpp',
         ]
