diff --git a/Telegram/SourceFiles/platform/linux/linux_libs.cpp b/Telegram/SourceFiles/platform/linux/linux_libs.cpp index 879db8f75..ed09f1bed 100644 --- a/Telegram/SourceFiles/platform/linux/linux_libs.cpp +++ b/Telegram/SourceFiles/platform/linux/linux_libs.cpp @@ -17,7 +17,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "main/main_domain.h" #include "mainwindow.h" +#ifndef TDESKTOP_DISABLE_GTK_INTEGRATION using Platform::internal::XErrorHandlerRestorer; +#endif // !TDESKTOP_DISABLE_GTK_INTEGRATION namespace Platform { namespace Libs {