0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-16 19:13:01 +00:00
Files
termux-packages/x11-packages/telegram-desktop/0002-webrtc-clang20.patch
2025-04-24 22:51:52 +08:00

15 lines
477 B
Diff

--- a/tg_owt/src/api/candidate.h
+++ b/tg_owt/src/api/candidate.h
@@ -105,7 +105,11 @@
// cricket::LOCAL_PORT_TYPE). The type should really be an enum rather than a
// string, but until we make that change the lifetime attribute helps us lock
// things down. See also the `Port` class.
+#ifdef __clang__
+ void set_type(absl::string_view type) {
+#else
void set_type(absl::string_view type ABSL_ATTRIBUTE_LIFETIME_BOUND) {
+#endif
Assign(type_, type);
}