diff --git a/js/src/xpconnect/shell/xpcshell.cpp b/js/src/xpconnect/shell/xpcshell.cpp index d48752207525..3477b299922e 100644 --- a/js/src/xpconnect/shell/xpcshell.cpp +++ b/js/src/xpconnect/shell/xpcshell.cpp @@ -48,6 +48,10 @@ #ifdef MOZ_IPC #include "mozilla/dom/ContentProcessParent.h" #include "mozilla/ipc/TestShellParent.h" + +#if defined(MOZ_WIDGET_GTK2) +# include +#endif #endif #include @@ -1629,6 +1633,10 @@ main(int argc, char **argv, char **envp) setbuf(stdout, 0); #endif +#if defined(MOZ_IPC) && defined(MOZ_WIDGET_GTK2) + gtk_init(0, 0); +#endif + gErrFile = stderr; gOutFile = stdout; gInFile = stdin;