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

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


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

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.

>From 1dc48c8973f6dc66dcf7aed8ae4cdc0f2b7dc22b Mon Sep 17 00:00:00 2001
From: Alexey Samsonov <vonosmas at gmail.com>
Date: Thu, 20 Nov 2025 21:56:25 +0000
Subject: [PATCH] [libc] Add missing dependencies for arpa/inet.h header.

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.
---
 libc/include/CMakeLists.txt | 2 ++
 1 file changed, 2 insertions(+)

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)



More information about the libc-commits mailing list