diff --git a/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/cstring-includes.patch b/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/cstring-includes.patch new file mode 100644 index 000000000000..ea641791c400 --- /dev/null +++ b/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/cstring-includes.patch @@ -0,0 +1,74 @@ +diff --git a/src/api/video/nv12_buffer.cc b/src/api/video/nv12_buffer.cc +index ca9dcd867..89d28f23c 100644 +--- a/src/api/video/nv12_buffer.cc ++++ b/src/api/video/nv12_buffer.cc +@@ -16,6 +16,8 @@ + #include "third_party/libyuv/include/libyuv/convert.h" + #include "third_party/libyuv/include/libyuv/scale.h" + ++#include ++ + namespace webrtc { + + namespace { +diff --git a/src/audio/utility/channel_mixer.cc b/src/audio/utility/channel_mixer.cc +index 0f1e66387..33b771b0c 100644 +--- a/src/audio/utility/channel_mixer.cc ++++ b/src/audio/utility/channel_mixer.cc +@@ -15,6 +15,8 @@ + #include "rtc_base/logging.h" + #include "rtc_base/numerics/safe_conversions.h" + ++#include ++ + namespace webrtc { + + ChannelMixer::ChannelMixer(ChannelLayout input_layout, +diff --git a/src/modules/audio_processing/aec3/alignment_mixer.cc b/src/modules/audio_processing/aec3/alignment_mixer.cc +index 7f076dea8..ffd7242b5 100644 +--- a/src/modules/audio_processing/aec3/alignment_mixer.cc ++++ b/src/modules/audio_processing/aec3/alignment_mixer.cc +@@ -10,6 +10,7 @@ + #include "modules/audio_processing/aec3/alignment_mixer.h" + + #include ++#include + + #include "rtc_base/checks.h" + +diff --git a/src/modules/desktop_capture/linux/wayland/shared_screencast_stream.cc b/src/modules/desktop_capture/linux/wayland/shared_screencast_stream.cc +index 7ef1a030e..5b9ab7137 100644 +--- a/src/modules/desktop_capture/linux/wayland/shared_screencast_stream.cc ++++ b/src/modules/desktop_capture/linux/wayland/shared_screencast_stream.cc +@@ -18,6 +18,7 @@ + #include + #include + ++#include + #include + + #include "absl/memory/memory.h" +diff --git a/src/modules/video_coding/utility/ivf_file_reader.cc b/src/modules/video_coding/utility/ivf_file_reader.cc +index 4c08ca613..f82f2bfcb 100644 +--- a/src/modules/video_coding/utility/ivf_file_reader.cc ++++ b/src/modules/video_coding/utility/ivf_file_reader.cc +@@ -10,6 +10,7 @@ + + #include "modules/video_coding/utility/ivf_file_reader.h" + ++#include + #include + #include + +diff --git a/src/net/dcsctp/packet/bounded_byte_writer.h b/src/net/dcsctp/packet/bounded_byte_writer.h +index d754549e4..bf5e3ed42 100644 +--- a/src/net/dcsctp/packet/bounded_byte_writer.h ++++ b/src/net/dcsctp/packet/bounded_byte_writer.h +@@ -12,6 +12,7 @@ + #define NET_DCSCTP_PACKET_BOUNDED_BYTE_WRITER_H_ + + #include ++#include + + #include "api/array_view.h" + diff --git a/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/tg_owt.nix b/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/tg_owt.nix index 6a05fd4e76ff..1a19557a1516 100644 --- a/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/tg_owt.nix +++ b/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/tg_owt.nix @@ -47,6 +47,9 @@ stdenv.mkDerivation { # fix build with abseil 202508 # upstream PR: https://github.com/desktop-app/tg_owt/pull/164 ./abseil-202508.patch + # fix build with latest glibc + # upstream PR: https://github.com/desktop-app/tg_owt/pull/172 + ./cstring-includes.patch ]; postPatch = lib.optionalString stdenv.hostPlatform.isLinux ''