[libc-commits] [libc] [libc] fix build failures due to SIGCHLD (PR #94093)

Schrodinger ZHU Yifan via libc-commits libc-commits at lists.llvm.org
Fri May 31 21:20:41 PDT 2024


https://github.com/SchrodingerZhu created https://github.com/llvm/llvm-project/pull/94093

None

>From 2d8e68b3288b224fb008f085d7ccd06fe7dc0220 Mon Sep 17 00:00:00 2001
From: Yifan Zhu <yifzhu at nvidia.com>
Date: Fri, 31 May 2024 21:19:02 -0700
Subject: [PATCH] [libc] fix build failures due to SIGCHLD

---
 libc/test/src/__support/threads/linux/CMakeLists.txt     | 1 +
 libc/test/src/__support/threads/linux/raw_mutex_test.cpp | 1 +
 2 files changed, 2 insertions(+)

diff --git a/libc/test/src/__support/threads/linux/CMakeLists.txt b/libc/test/src/__support/threads/linux/CMakeLists.txt
index ce9becb923c3a..4299a5617b8ff 100644
--- a/libc/test/src/__support/threads/linux/CMakeLists.txt
+++ b/libc/test/src/__support/threads/linux/CMakeLists.txt
@@ -9,4 +9,5 @@ add_libc_test(
     libc.src.sys.mman.mmap
     libc.src.sys.mman.munmap
     libc.src.stdlib.exit
+    libc.hdr.signal_macros
 )
diff --git a/libc/test/src/__support/threads/linux/raw_mutex_test.cpp b/libc/test/src/__support/threads/linux/raw_mutex_test.cpp
index aff6c8be0cb1b..918f5d35c94f4 100644
--- a/libc/test/src/__support/threads/linux/raw_mutex_test.cpp
+++ b/libc/test/src/__support/threads/linux/raw_mutex_test.cpp
@@ -6,6 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include "hdr/signal_macros.h"
 #include "include/llvm-libc-macros/linux/time-macros.h"
 #include "src/__support/CPP/atomic.h"
 #include "src/__support/OSUtil/syscall.h"



More information about the libc-commits mailing list