[libc-commits] [libc] [libc] Add missing dependencies for arpa/inet.h header. (PR #168951)

via libc-commits libc-commits at lists.llvm.org
Thu Nov 20 13:58:33 PST 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Alexey Samsonov (vonosmas)

<details>
<summary>Changes</summary>

Add dependency on headers with `in_addr` and `in_addr_t` type definitions to ensure that these headers will be properly installed by "install-libc" CMake target.

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


1 Files Affected:

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


``````````diff
diff --git a/libc/include/CMakeLists.txt b/libc/include/CMakeLists.txt
index 7b52daf9a8062..96c3a88f3fcc8 100644
--- a/libc/include/CMakeLists.txt
+++ b/libc/include/CMakeLists.txt
@@ -200,6 +200,8 @@ add_header_macro(
   DEPENDS
     .llvm_libc_common_h
     .inttypes
+    .llvm-libc-types.in_addr
+    .llvm-libc-types.in_addr_t
 )
 
 file(MAKE_DIRECTORY ${LIBC_INCLUDE_DIR}/netinet)

``````````

</details>


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


More information about the libc-commits mailing list