From d629b4c98bd35a05d9f4bf5ec2db287cd26cd644 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Tue, 21 Apr 2026 21:58:27 +0200 Subject: [PATCH] libtsan: backport llvm/llvm-project#183411 https://github.com/llvm/llvm-project/pull/183411 --- .../sanitizer_common/sanitizer_platform_limits_posix.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/libtsan/sanitizer_common/sanitizer_platform_limits_posix.cpp b/lib/libtsan/sanitizer_common/sanitizer_platform_limits_posix.cpp index ea8cc30626..5872e3396f 100644 --- a/lib/libtsan/sanitizer_common/sanitizer_platform_limits_posix.cpp +++ b/lib/libtsan/sanitizer_common/sanitizer_platform_limits_posix.cpp @@ -76,6 +76,7 @@ #include #include #include +#include #if SANITIZER_ANDROID #include #endif @@ -516,6 +517,7 @@ unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr); unsigned struct_seq_event_rec_sz = sizeof(struct seq_event_rec); unsigned struct_synth_info_sz = sizeof(struct synth_info); unsigned struct_vt_mode_sz = sizeof(struct vt_mode); + unsigned struct_sock_fprog_sz = sizeof(struct sock_fprog); #endif // SANITIZER_LINUX #if SANITIZER_GLIBC @@ -543,7 +545,6 @@ unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr); unsigned struct_audio_buf_info_sz = sizeof(struct audio_buf_info); unsigned struct_ppp_stats_sz = sizeof(struct ppp_stats); - unsigned struct_sock_fprog_sz = sizeof(struct sock_fprog); # endif // SANITIZER_GLIBC # if !SANITIZER_ANDROID && !SANITIZER_APPLE && !SANITIZER_HAIKU