pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

telegram-desktop: some patches and some additional options to Makefile



Module Name:	pkgsrc-wip
Committed By:	AcidBear <jake.slazenger%yandex.com@localhost>
Pushed By:	jakeSlaz
Date:		Wed Feb 19 04:04:53 2020 +0300
Changeset:	906339a25f46cf2f4ac3378ab1b10c60d1190c23

Modified Files:
	telegram-desktop/Makefile
	telegram-desktop/distinfo
	telegram-desktop/options.mk
	telegram-desktop/patches/patch-libtgvoip-threading.h
Added Files:
	telegram-desktop/patches/patch-Telegram-lib_tgvoip.cmake
	telegram-desktop/patches/patch-lib_base-crash_report_header.h
	telegram-desktop/patches/patch-lib_mtproto.cmake
	telegram-desktop/patches/patch-libtgvoip-audio-AudioIO.cpp
	telegram-desktop/patches/patch-libtgvoip-audio-AudioInput.cpp
	telegram-desktop/patches/patch-libtgvoip-audio-AudioOutput.cpp
	telegram-desktop/patches/patch-libtgvoip-webrtc_dsp-platform_thread_types.cc
	telegram-desktop/patches/patch-libtgvoip-webrtc_dsp-rtc_base-stringutils.h
	telegram-desktop/patches/patch-mtproto-dc_options.h
	telegram-desktop/patches/patch-mtproto-mtproto_abstract_socket.h
	telegram-desktop/patches/patch-mtproto-mtproto_bound_key_creator.h
	telegram-desktop/patches/patch-mtproto-mtproto_proxy_data.h

Log Message:
telegram-desktop: some patches and some additional options to Makefile

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=906339a25f46cf2f4ac3378ab1b10c60d1190c23

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 telegram-desktop/Makefile                          |  9 ++++
 telegram-desktop/distinfo                          | 14 ++++-
 telegram-desktop/options.mk                        | 11 ++++
 .../patches/patch-Telegram-lib_tgvoip.cmake        | 60 ++++++++++++++++++++++
 .../patches/patch-lib_base-crash_report_header.h   | 12 +++++
 telegram-desktop/patches/patch-lib_mtproto.cmake   | 12 +++++
 .../patches/patch-libtgvoip-audio-AudioIO.cpp      | 13 +++++
 .../patches/patch-libtgvoip-audio-AudioInput.cpp   | 13 +++++
 .../patches/patch-libtgvoip-audio-AudioOutput.cpp  | 13 +++++
 .../patches/patch-libtgvoip-threading.h            | 49 ++++++++++++++++++
 ...h-libtgvoip-webrtc_dsp-platform_thread_types.cc | 26 ++++++++++
 ...tch-libtgvoip-webrtc_dsp-rtc_base-stringutils.h | 13 +++++
 .../patches/patch-mtproto-dc_options.h             | 12 +++++
 .../patch-mtproto-mtproto_abstract_socket.h        | 12 +++++
 .../patch-mtproto-mtproto_bound_key_creator.h      | 12 +++++
 .../patches/patch-mtproto-mtproto_proxy_data.h     | 12 +++++
 16 files changed, 292 insertions(+), 1 deletion(-)

diffs:
diff --git a/telegram-desktop/Makefile b/telegram-desktop/Makefile
index 9db7acf2b2..966a850c46 100644
--- a/telegram-desktop/Makefile
+++ b/telegram-desktop/Makefile
@@ -36,6 +36,15 @@ CMAKE_ARGS+=           -DTDESKTOP_DISABLE_DESKTOP_FILE_GENERATION=ON
 CMAKE_ARGS+=           -DTDESKTOP_USE_PACKAGED_TGVOIP=OFF
 CMAKE_ARGS+=           -DDESKTOP_APP_SPECIAL_TARGET=""
 CMAKE_ARGS+=           -DTDESKTOP_LAUNCHER_BASENAME="telegram-desktop"
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD" # NetBSD-specific config
+CMAKE_ARGS+=           -DTDESKTOP_WITHOUT_ALSA=ON
+.elif ${OPSYS} == "Linux"
+CMAKE_ARGS+=           -DTDESKTOP_WITHOUT_ALSA=OFF
+.endif
+
+
 
 .include "options.mk"
 
diff --git a/telegram-desktop/distinfo b/telegram-desktop/distinfo
index a55f24db9c..764e6f64e4 100644
--- a/telegram-desktop/distinfo
+++ b/telegram-desktop/distinfo
@@ -4,6 +4,7 @@ SHA1 (tdesktop/telegram-desktop-1.9.9.tar.gz) = 5f3bc72245f790300ed9816f35aa0db0
 RMD160 (tdesktop/telegram-desktop-1.9.9.tar.gz) = 077087a0b57d6950ab1431c7d8fa1143a7ebc6f9
 SHA512 (tdesktop/telegram-desktop-1.9.9.tar.gz) = ba6400e6f5eec5bda6e8a54b43846e695b2cce731cb6b39f17407cc39e3e9b8078d977253d29962671f30e33dbe012f8e40f340f781fd8ca73487e5f2d42e3de
 Size (tdesktop/telegram-desktop-1.9.9.tar.gz) = 25221934 bytes
+SHA1 (patch-Telegram-lib_tgvoip.cmake) = 06fd37166c0dddf215e2bd16d95e304d16f82db7
 SHA1 (patch-base_file_utilities.h) = 3afa01e200954e14697043e57fc09b4413769c63
 SHA1 (patch-base_file_utilities_linux.h) = b159a31a23ed0fe608129254a7b72a29bb0d42e0
 SHA1 (patch-base_info_linux.h) = 44bedaa333cc12d5de57777c1659aa11863fba36
@@ -17,8 +18,19 @@ SHA1 (patch-call_delayed.h) = 935062178537df05e44a2e651bef2030faa613f3
 SHA1 (patch-concurrent_timer.h) = 8b2356cbf705bfb9e19af2725475dd9bcd6a33d7
 SHA1 (patch-last_user_input.h) = 961f5a2a308ec973bc8037658c5658ce145627ef
 SHA1 (patch-lib_base-CMakeLists.txt) = 940672a38a1168e2cb9835f84aecd3ad0ef041f4
+SHA1 (patch-lib_base-crash_report_header.h) = dc48f472c54d91132d2c48ac6e6628bb7ef4cda1
+SHA1 (patch-lib_mtproto.cmake) = b82484ff782d10366696f5d40912f17d5d2f6583
 SHA1 (patch-lib_storage-CMakeLists.txt) = ef770e3f50f075d251262fc511ef21313f5edab1
-SHA1 (patch-libtgvoip-threading.h) = a12da3421e4b635c30ac4d915e02adacf27f9f52
+SHA1 (patch-libtgvoip-audio-AudioIO.cpp) = 96b482354b3ad6321b3ea95767d0d55ba63dab38
+SHA1 (patch-libtgvoip-audio-AudioInput.cpp) = 1624ba5ec9c4625fdf26ba898aded05f37fcdf82
+SHA1 (patch-libtgvoip-audio-AudioOutput.cpp) = ec83d33d1158c0e3e8ada0e0458c84347a38e112
+SHA1 (patch-libtgvoip-threading.h) = 929bd84af9515d15eff00866237df5044912f5e3
+SHA1 (patch-libtgvoip-webrtc_dsp-platform_thread_types.cc) = 0c2d20a9ba95acae349519507dc9515fdb7a6cec
+SHA1 (patch-libtgvoip-webrtc_dsp-rtc_base-stringutils.h) = fb3f30dac740098d467562b75239fef9fbaa810d
+SHA1 (patch-mtproto-dc_options.h) = 7cd2ee9458755333ca090c6307c4ba68a1451597
+SHA1 (patch-mtproto-mtproto_abstract_socket.h) = e5eb4114a4e4095ee2681e4bd143f753139762b2
+SHA1 (patch-mtproto-mtproto_bound_key_creator.h) = e93f5415a93fba0a0ab38a0e4132d98795b967ce
+SHA1 (patch-mtproto-mtproto_proxy_data.h) = 6819e4faf65eac4d0056b05eef96d76b84516c9f
 SHA1 (patch-observer.h) = 023e0aa9caa7efe3db575db1dc4af7227d84c29c
 SHA1 (patch-parse_helper.h) = da283461c598d06bc60e084798ffa207a963e49a
 SHA1 (patch-qthelp_url.h) = 2611720a38f9ff4422c9a64f17067ca8bd5f2ec8
diff --git a/telegram-desktop/options.mk b/telegram-desktop/options.mk
index 22d64238ec..8f973a1875 100644
--- a/telegram-desktop/options.mk
+++ b/telegram-desktop/options.mk
@@ -47,3 +47,14 @@ CMAKE_ARGS+=              -DTDESKTOP_DISABLE_DBUS_INTEGRATION=ON
 .else
 .include "../../security/openssl/buildlink3.mk"
 .endif
+
+###
+### PulseAudio
+###
+.if !empty(PKG_OPTIONS:Mpulseaudio)
+.include "../../security/pulseaudio/buildlink3.mk"
+CMAKE_ARGS+=           -DTDESKTOP_WITHOUT_PULSE=OFF
+.else
+CMAKE_ARGS+=           -DTDESKTOP_WITHOUT_PULSE=ON
+.endif
+
diff --git a/telegram-desktop/patches/patch-Telegram-lib_tgvoip.cmake b/telegram-desktop/patches/patch-Telegram-lib_tgvoip.cmake
new file mode 100644
index 0000000000..35ff3f9604
--- /dev/null
+++ b/telegram-desktop/patches/patch-Telegram-lib_tgvoip.cmake
@@ -0,0 +1,60 @@
+$NetBSD$
+
+--- Telegram/cmake/lib_tgvoip.cmake.orig	2020-01-28 17:45:49.000000000 +0000
++++ Telegram/cmake/lib_tgvoip.cmake
+@@ -18,6 +18,35 @@ else()
+     init_target(lib_tgvoip)
+     add_library(tdesktop::lib_tgvoip ALIAS lib_tgvoip)
+ 
++	if (TDESKTOP_WITHOUT_PULSE)
++		target_compile_definitions(lib_tgvoip PUBLIC WITHOUT_PULSE)
++	else()
++		nice_target_sources(lib_tgvoip ${tgvoip_loc}
++		PRIVATE
++			# UNIX-like OSes
++			os/linux/AudioOutputPulse.cpp
++        	os/linux/AudioOutputPulse.h
++        	os/linux/AudioInputPulse.cpp
++        	os/linux/AudioInputPulse.h
++        	os/linux/AudioPulse.cpp
++        	os/linux/AudioPulse.h)
++	endif()
++
++
++	if (TDESKTOP_WITHOUT_ALSA)
++		target_compile_definitions(lib_tgvoip PUBLIC WITHOUT_ALSA)
++	else()
++		nice_target_sources(lib_tgvoip ${tgvoip_loc}
++		PRIVATE
++        	# Linux
++        	os/linux/AudioInputALSA.cpp
++        	os/linux/AudioInputALSA.h
++        	os/linux/AudioOutputALSA.cpp
++        	os/linux/AudioOutputALSA.h
++		)
++
++	endif()
++
+     if (NOT APPLE)
+         # On macOS if you build libtgvoip with C++17 it uses std::optional
+         # instead of absl::optional and when it uses optional::value, the
+@@ -107,19 +136,6 @@ else()
+         os/darwin/AudioUnitIO.h
+         os/darwin/DarwinSpecific.mm
+         os/darwin/DarwinSpecific.h
+-
+-        # Linux
+-        os/linux/AudioInputALSA.cpp
+-        os/linux/AudioInputALSA.h
+-        os/linux/AudioOutputALSA.cpp
+-        os/linux/AudioOutputALSA.h
+-        os/linux/AudioOutputPulse.cpp
+-        os/linux/AudioOutputPulse.h
+-        os/linux/AudioInputPulse.cpp
+-        os/linux/AudioInputPulse.h
+-        os/linux/AudioPulse.cpp
+-        os/linux/AudioPulse.h
+-
+         # POSIX
+         os/posix/NetworkSocketPosix.cpp
+         os/posix/NetworkSocketPosix.h
diff --git a/telegram-desktop/patches/patch-lib_base-crash_report_header.h b/telegram-desktop/patches/patch-lib_base-crash_report_header.h
new file mode 100644
index 0000000000..4f9e3074a8
--- /dev/null
+++ b/telegram-desktop/patches/patch-lib_base-crash_report_header.h
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- Telegram/lib_base/base/crash_report_header.h.orig	2020-02-18 23:14:27.572402430 +0000
++++ Telegram/lib_base/base/crash_report_header.h
+@@ -5,6 +5,7 @@
+ // https://github.com/desktop-app/legal/blob/master/LEGAL
+ //
+ #pragma once
++#include "base/base_pch.h"
+ 
+ namespace base::details {
+ 
diff --git a/telegram-desktop/patches/patch-lib_mtproto.cmake b/telegram-desktop/patches/patch-lib_mtproto.cmake
new file mode 100644
index 0000000000..78cbe35a49
--- /dev/null
+++ b/telegram-desktop/patches/patch-lib_mtproto.cmake
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- Telegram/cmake/lib_mtproto.cmake.orig	2020-02-18 23:44:51.744224914 +0000
++++ Telegram/cmake/lib_mtproto.cmake
+@@ -8,7 +8,6 @@ add_library(lib_mtproto OBJECT)
+ init_target(lib_mtproto)
+ add_library(tdesktop::lib_mtproto ALIAS lib_mtproto)
+ 
+-target_precompile_headers(lib_mtproto PRIVATE ${src_loc}/mtproto/mtproto_pch.h)
+ nice_target_sources(lib_mtproto ${src_loc}
+ PRIVATE
+     mtproto/details/mtproto_abstract_socket.cpp
diff --git a/telegram-desktop/patches/patch-libtgvoip-audio-AudioIO.cpp b/telegram-desktop/patches/patch-libtgvoip-audio-AudioIO.cpp
new file mode 100644
index 0000000000..978d51d916
--- /dev/null
+++ b/telegram-desktop/patches/patch-libtgvoip-audio-AudioIO.cpp
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- Telegram/ThirdParty/libtgvoip/audio/AudioIO.cpp.orig	2020-02-18 21:50:53.875728496 +0000
++++ Telegram/ThirdParty/libtgvoip/audio/AudioIO.cpp
+@@ -31,7 +31,7 @@
+ #endif
+ #include "../os/windows/AudioInputWASAPI.h"
+ #include "../os/windows/AudioOutputWASAPI.h"
+-#elif defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__gnu_hurd__)
++#elif defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__gnu_hurd__) || defined(__NetBSD__)
+ #ifndef WITHOUT_ALSA
+ #include "../os/linux/AudioInputALSA.h"
+ #include "../os/linux/AudioOutputALSA.h"
diff --git a/telegram-desktop/patches/patch-libtgvoip-audio-AudioInput.cpp b/telegram-desktop/patches/patch-libtgvoip-audio-AudioInput.cpp
new file mode 100644
index 0000000000..87642ba33a
--- /dev/null
+++ b/telegram-desktop/patches/patch-libtgvoip-audio-AudioInput.cpp
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- Telegram/ThirdParty/libtgvoip/audio/AudioInput.cpp.orig	2020-02-18 16:28:57.048374114 +0000
++++ Telegram/ThirdParty/libtgvoip/audio/AudioInput.cpp
+@@ -26,7 +26,7 @@
+ #include "../os/windows/AudioInputWave.h"
+ #endif
+ #include "../os/windows/AudioInputWASAPI.h"
+-#elif defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__gnu_hurd__)
++#elif defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__gnu_hurd__) || defined(__NetBSD__)
+ #ifndef WITHOUT_ALSA
+ #include "../os/linux/AudioInputALSA.h"
+ #endif
diff --git a/telegram-desktop/patches/patch-libtgvoip-audio-AudioOutput.cpp b/telegram-desktop/patches/patch-libtgvoip-audio-AudioOutput.cpp
new file mode 100644
index 0000000000..7cf26e3d3f
--- /dev/null
+++ b/telegram-desktop/patches/patch-libtgvoip-audio-AudioOutput.cpp
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- Telegram/ThirdParty/libtgvoip/audio/AudioOutput.cpp.orig	2020-02-18 21:42:27.390221991 +0000
++++ Telegram/ThirdParty/libtgvoip/audio/AudioOutput.cpp
+@@ -29,7 +29,7 @@
+ #include "../os/windows/AudioOutputWave.h"
+ #endif
+ #include "../os/windows/AudioOutputWASAPI.h"
+-#elif defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__gnu_hurd__)
++#elif defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__gnu_hurd__) || defined(__NetBSD__)
+ #ifndef WITHOUT_ALSA
+ #include "../os/linux/AudioOutputALSA.h"
+ #endif
diff --git a/telegram-desktop/patches/patch-libtgvoip-threading.h b/telegram-desktop/patches/patch-libtgvoip-threading.h
index afc76512f4..df7be9d407 100644
--- a/telegram-desktop/patches/patch-libtgvoip-threading.h
+++ b/telegram-desktop/patches/patch-libtgvoip-threading.h
@@ -1,2 +1,51 @@
 $NetBSD$
 
+--- Telegram/ThirdParty/libtgvoip/threading.h.orig	2020-01-21 12:16:27.000000000 +0000
++++ Telegram/ThirdParty/libtgvoip/threading.h
+@@ -9,8 +9,9 @@
+ 
+ #include <functional>
+ 
+-#if defined(_POSIX_THREADS) || defined(_POSIX_VERSION) || defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__))
++#if defined(_POSIX_THREADS) || defined(_POSIX_VERSION) || defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__)) || defined(__NetBSD__)
+ 
++#include <cstring>
+ #include <pthread.h>
+ #include <semaphore.h>
+ #include <sched.h>
+@@ -53,9 +54,12 @@ namespace tgvoip{
+ 			name=NULL;
+ 			thread=0;
+ 		}
++		char *descr=NULL;
+ 
+ 		virtual ~Thread(){
+-
++			if (this->descr != NULL){
++				free(this->descr);
++			}
+ 		}
+ 
+ 		void Start(){
+@@ -71,6 +75,9 @@ namespace tgvoip{
+ 
+ 		void SetName(const char* name){
+ 			this->name=name;
++
++			this->descr = (char *) malloc(sizeof(char) * (strlen(this->name) + 1));
++			strcpy(this->descr, this->name);
+ 		}
+ 
+ 
+@@ -92,8 +99,10 @@ namespace tgvoip{
+ 		static void* ActualEntryPoint(void* arg){
+ 			Thread* self=reinterpret_cast<Thread*>(arg);
+ 			if(self->name){
+-#if !defined(__APPLE__) && !defined(__gnu_hurd__)
++#if !defined(__APPLE__) && !defined(__gnu_hurd__) && !defined(__NetBSD__)
+ 				pthread_setname_np(self->thread, self->name);
++#elif defined(__NetBSD__)
++				pthread_setname_np(self->thread, self->name, self->descr);
+ #elif !defined(__gnu_hurd__)
+ 				pthread_setname_np(self->name);
+ 				if(self->maxPriority){
diff --git a/telegram-desktop/patches/patch-libtgvoip-webrtc_dsp-platform_thread_types.cc b/telegram-desktop/patches/patch-libtgvoip-webrtc_dsp-platform_thread_types.cc
new file mode 100644
index 0000000000..172081f80a
--- /dev/null
+++ b/telegram-desktop/patches/patch-libtgvoip-webrtc_dsp-platform_thread_types.cc
@@ -0,0 +1,26 @@
+$NetBSD$
+
+--- Telegram/ThirdParty/libtgvoip/webrtc_dsp/rtc_base/platform_thread_types.cc.orig	2020-01-21 12:16:27.000000000 +0000
++++ Telegram/ThirdParty/libtgvoip/webrtc_dsp/rtc_base/platform_thread_types.cc
+@@ -11,7 +11,12 @@
+ #include "rtc_base/platform_thread_types.h"
+ 
+ #if defined(WEBRTC_LINUX)
++#if !defined(__NetBSD__)
+ #include <sys/prctl.h>
++#endif //!NetBSD
++#if defined(__NetBSD__)
++#include <lwp.h>
++#endif //NetBSD
+ #include <sys/syscall.h>
+ #endif
+ 
+@@ -27,6 +32,8 @@ PlatformThreadId CurrentThreadId() {
+   return gettid();
+ #elif defined(WEBRTC_FUCHSIA)
+   return zx_thread_self();
++#elif defined(__NetBSD__)
++  return _lwp_self();
+ #elif defined(WEBRTC_LINUX)
+   return syscall(__NR_gettid);
+ #else
diff --git a/telegram-desktop/patches/patch-libtgvoip-webrtc_dsp-rtc_base-stringutils.h b/telegram-desktop/patches/patch-libtgvoip-webrtc_dsp-rtc_base-stringutils.h
new file mode 100644
index 0000000000..d3a819509f
--- /dev/null
+++ b/telegram-desktop/patches/patch-libtgvoip-webrtc_dsp-rtc_base-stringutils.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- Telegram/ThirdParty/libtgvoip/webrtc_dsp/rtc_base/stringutils.h.orig	2020-02-18 22:22:41.565702834 +0000
++++ Telegram/ThirdParty/libtgvoip/webrtc_dsp/rtc_base/stringutils.h
+@@ -25,7 +25,7 @@
+ #endif  // WEBRTC_WIN
+ 
+ #if defined(WEBRTC_POSIX)
+-#ifdef BSD
++#if defined(BSD) || defined(__NetBSD__)
+ #include <stdlib.h>
+ #else  // BSD
+ #include <alloca.h>
diff --git a/telegram-desktop/patches/patch-mtproto-dc_options.h b/telegram-desktop/patches/patch-mtproto-dc_options.h
new file mode 100644
index 0000000000..af651ac9b7
--- /dev/null
+++ b/telegram-desktop/patches/patch-mtproto-dc_options.h
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- Telegram/SourceFiles/mtproto/dc_options.h.orig	2020-02-19 00:36:21.249285073 +0000
++++ Telegram/SourceFiles/mtproto/dc_options.h
+@@ -9,6 +9,7 @@ https://github.com/telegramdesktop/tdesk
+ 
+ #include "base/observer.h"
+ #include "base/bytes.h"
++#include "mtproto/mtproto_pch.h"
+ 
+ #include <QtCore/QReadWriteLock>
+ #include <string>
diff --git a/telegram-desktop/patches/patch-mtproto-mtproto_abstract_socket.h b/telegram-desktop/patches/patch-mtproto-mtproto_abstract_socket.h
new file mode 100644
index 0000000000..ba42166067
--- /dev/null
+++ b/telegram-desktop/patches/patch-mtproto-mtproto_abstract_socket.h
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- Telegram/SourceFiles/mtproto/details/mtproto_abstract_socket.h.orig	2020-02-18 23:41:44.584330690 +0000
++++ Telegram/SourceFiles/mtproto/details/mtproto_abstract_socket.h
+@@ -9,6 +9,7 @@ https://github.com/telegramdesktop/tdesk
+ 
+ #include "base/bytes.h"
+ #include "base/basic_types.h"
++#include "mtproto/mtproto_pch.h"
+ 
+ namespace MTP::details {
+ 
diff --git a/telegram-desktop/patches/patch-mtproto-mtproto_bound_key_creator.h b/telegram-desktop/patches/patch-mtproto-mtproto_bound_key_creator.h
new file mode 100644
index 0000000000..ea05450085
--- /dev/null
+++ b/telegram-desktop/patches/patch-mtproto-mtproto_bound_key_creator.h
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- Telegram/SourceFiles/mtproto/details/mtproto_bound_key_creator.h.orig	2020-02-19 00:00:10.457243223 +0000
++++ Telegram/SourceFiles/mtproto/details/mtproto_bound_key_creator.h
+@@ -9,6 +9,7 @@ https://github.com/telegramdesktop/tdesk
+ 
+ #include "mtproto/details/mtproto_dc_key_creator.h"
+ #include "mtproto/details/mtproto_dc_key_binder.h"
++#include "mtproto/mtproto_pch.h"
+ 
+ namespace MTP::details {
+ 
diff --git a/telegram-desktop/patches/patch-mtproto-mtproto_proxy_data.h b/telegram-desktop/patches/patch-mtproto-mtproto_proxy_data.h
new file mode 100644
index 0000000000..3125953e49
--- /dev/null
+++ b/telegram-desktop/patches/patch-mtproto-mtproto_proxy_data.h
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- Telegram/SourceFiles/mtproto/mtproto_proxy_data.h.orig	2020-02-19 00:21:27.967442742 +0000
++++ Telegram/SourceFiles/mtproto/mtproto_proxy_data.h
+@@ -6,6 +6,7 @@ For license and copyright information pl
+ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
+ */
+ #pragma once
++#include "mtproto/mtproto_pch.h"
+ 
+ namespace MTP {
+ 


Home | Main Index | Thread Index | Old Index