Bug 966814 - Build with disabled X11 on linux failing to compile. r=ted

This commit is contained in:
Oleg Romashin 2014-07-29 19:21:08 +02:00
parent 450a348f37
commit a52ac8a09b
2 changed files with 8 additions and 1 deletions

View File

@ -8010,10 +8010,13 @@ if test "$MOZ_TREE_CAIRO"; then
XLIB_SURFACE_FEATURE="#define CAIRO_HAS_XLIB_SURFACE 1"
XLIB_XRENDER_SURFACE_FEATURE="#define CAIRO_HAS_XLIB_XRENDER_SURFACE 1"
PS_SURFACE_FEATURE="#define CAIRO_HAS_PS_SURFACE 1"
fi
if test "$_HAVE_FREETYPE2"; then
FT_FONT_FEATURE="#define CAIRO_HAS_FT_FONT 1"
MOZ_ENABLE_CAIRO_FT=1
CAIRO_FT_CFLAGS="$FT2_CFLAGS"
fi
case "$MOZ_WIDGET_TOOLKIT" in
qt)
QT_SURFACE_FEATURE="#define CAIRO_HAS_QT_SURFACE 1"

View File

@ -677,7 +677,11 @@ nsHttpHandler::InitUserAgentComponents()
"Windows"
#elif defined(XP_MACOSX)
"Macintosh"
#elif defined(MOZ_X11)
#elif defined(XP_UNIX)
// We historically have always had X11 here,
// and there seems little a webpage can sensibly do
// based on it being something else, so use X11 for
// backwards compatibility in all cases.
"X11"
#endif
);