[libc-commits] [libc] [libc] Fix signal's dependency on the proxy header sighandler_t. (PR #107605)

via libc-commits libc-commits at lists.llvm.org
Fri Sep 6 09:30:41 PDT 2024


https://github.com/lntue created https://github.com/llvm/llvm-project/pull/107605

None

>From 61adfbb62cf5244e9ef8347e98c340dc510297ca Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue.h at gmail.com>
Date: Fri, 6 Sep 2024 16:27:36 +0000
Subject: [PATCH] [libc] Fix signal's dependency on the proxy header
 sighandler_t.

---
 libc/hdr/types/CMakeLists.txt        | 2 +-
 libc/src/signal/linux/CMakeLists.txt | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/libc/hdr/types/CMakeLists.txt b/libc/hdr/types/CMakeLists.txt
index ea7bbccffbb819..3f4d70140082cf 100644
--- a/libc/hdr/types/CMakeLists.txt
+++ b/libc/hdr/types/CMakeLists.txt
@@ -173,7 +173,7 @@ add_proxy_header_library(
 )
 
 add_proxy_header_library(
-  __sighandler_t
+  sighandler_t
   HDRS
     sighandler_t.h
   FULL_BUILD_DEPENDS
diff --git a/libc/src/signal/linux/CMakeLists.txt b/libc/src/signal/linux/CMakeLists.txt
index 5a6be242ddd94f..103175bb139bab 100644
--- a/libc/src/signal/linux/CMakeLists.txt
+++ b/libc/src/signal/linux/CMakeLists.txt
@@ -126,6 +126,7 @@ add_entrypoint_object(
   DEPENDS
     .sigaction
     libc.hdr.signal_macros
+    libc.hdr.types.sighandler_t
 )
 
 add_entrypoint_object(



More information about the libc-commits mailing list