diff --git a/toolkit/components/remote/moz.build b/toolkit/components/remote/moz.build index 4ac1408..0e84246 100644 --- a/toolkit/components/remote/moz.build +++ b/toolkit/components/remote/moz.build @@ -26,7 +26,7 @@ if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk": "RemoteUtils.h", ] CXXFLAGS += CONFIG["MOZ_DBUS_CFLAGS"] - else: + elif CONFIG["MOZ_X11"]: SOURCES += [ "nsGTKRemoteServer.cpp", "nsXRemoteClient.cpp", diff --git a/toolkit/components/remote/nsRemoteService.cpp b/toolkit/components/remote/nsRemoteService.cpp index 7eef237..9e252d1 100644 --- a/toolkit/components/remote/nsRemoteService.cpp +++ b/toolkit/components/remote/nsRemoteService.cpp @@ -6,12 +6,14 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifdef MOZ_WIDGET_GTK -# ifdef MOZ_ENABLE_DBUS +# if defined(MOZ_ENABLE_DBUS) # include "nsDBusRemoteServer.h" # include "nsDBusRemoteClient.h" -# else +# elif defined(MOZ_X11) # include "nsGTKRemoteServer.h" # include "nsXRemoteClient.h" +# else +# include "nsRemoteClient.h" # endif #elif defined(XP_WIN) # include "nsWinRemoteServer.h" @@ -109,8 +111,10 @@ nsresult nsRemoteService::SendCommandLine(const nsACString& aProfile, #ifdef MOZ_WIDGET_GTK # if defined(MOZ_ENABLE_DBUS) client = MakeUnique(mStartupToken); -# else +# elif defined(MOZ_X11) client = MakeUnique(mStartupToken); +# else + return NS_ERROR_NOT_AVAILABLE; # endif #elif defined(XP_WIN) client = MakeUnique(); @@ -171,8 +175,10 @@ void nsRemoteService::StartupServer() { #ifdef MOZ_WIDGET_GTK # if defined(MOZ_ENABLE_DBUS) mRemoteServer = MakeUnique(); -# else +# elif defined(MOZ_X11) mRemoteServer = MakeUnique(); +# else + return; # endif #elif defined(XP_WIN) mRemoteServer = MakeUnique();