[libc-commits] [libc] [libc] Add missing struct_mmsghdr dependency to sys_socket (PR #200051)

via libc-commits libc-commits at lists.llvm.org
Wed May 27 13:59:52 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Jeff Bailey (kaladron)

<details>
<summary>Changes</summary>

Updated libc/include/CMakeLists.txt to add .llvm-libc-types.struct_mmsghdr to the sys_socket dependency list. This ensures that the generated sys/socket.h correctly includes the struct_mmsghdr.h type header.

Assisted-by: Automated tooling, human reviewed.

---
Full diff: https://github.com/llvm/llvm-project/pull/200051.diff


1 Files Affected:

- (modified) libc/include/CMakeLists.txt (+1) 


``````````diff
diff --git a/libc/include/CMakeLists.txt b/libc/include/CMakeLists.txt
index 6a02241b7d6a2..f16e0d9056b23 100644
--- a/libc/include/CMakeLists.txt
+++ b/libc/include/CMakeLists.txt
@@ -789,6 +789,7 @@ add_header_macro(
     .llvm-libc-types.struct_cmsghdr
     .llvm-libc-types.struct_iovec
     .llvm-libc-types.struct_linger
+    .llvm-libc-types.struct_mmsghdr
     .llvm-libc-types.struct_msghdr
     .llvm-libc-types.struct_sockaddr
     .llvm-libc-types.struct_sockaddr_storage

``````````

</details>


https://github.com/llvm/llvm-project/pull/200051


More information about the libc-commits mailing list