From 59f2f750b4f42f5510763c36f8ef0f5a7ed53d05 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Tue, 14 Sep 2021 09:43:00 -0700 Subject: [PATCH] On FreeBSD the system malloc is jemalloc and non-portable extensions are enabled including malloc_np.h. --- Telegram/SourceFiles/platform/linux/specific_linux.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Telegram/SourceFiles/platform/linux/specific_linux.cpp b/Telegram/SourceFiles/platform/linux/specific_linux.cpp index aa9974a9e..9c1254d33 100644 --- a/Telegram/SourceFiles/platform/linux/specific_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/specific_linux.cpp @@ -46,7 +46,12 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include #include + +#ifdef Q_OS_FREEBSD +#include +#else // Q_OS_FREEBSD #include +#endif // Q_OS_FREEBSD #ifndef DESKTOP_APP_DISABLE_DBUS_INTEGRATION #include