On FreeBSD the system malloc is jemalloc and non-portable

extensions are enabled including malloc_np.h.
This commit is contained in:
Gleb Smirnoff 2021-09-14 09:43:00 -07:00 committed by John Preston
parent 8069fdd873
commit 59f2f750b4
1 changed files with 5 additions and 0 deletions

View File

@ -46,7 +46,12 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include <QtGui/QWindow>
#include <private/qguiapplication_p.h>
#ifdef Q_OS_FREEBSD
#include <malloc_np.h>
#else // Q_OS_FREEBSD
#include <jemalloc/jemalloc.h>
#endif // Q_OS_FREEBSD
#ifndef DESKTOP_APP_DISABLE_DBUS_INTEGRATION
#include <glibmm.h>