[libcxx-commits] [libcxx] 07b5829 - [libc++] FreeBSD CI: Adds `<signal.h>` to `check_assertion.h` (#78863)

via libcxx-commits libcxx-commits at lists.llvm.org
Sat Jan 20 13:48:53 PST 2024


Author: Hristo Hristov
Date: 2024-01-20T13:48:48-08:00
New Revision: 07b5829fcad6514ab1079027e1b4d3565f963ead

URL: https://github.com/llvm/llvm-project/commit/07b5829fcad6514ab1079027e1b4d3565f963ead
DIFF: https://github.com/llvm/llvm-project/commit/07b5829fcad6514ab1079027e1b4d3565f963ead.diff

LOG: [libc++] FreeBSD CI: Adds `<signal.h>` to `check_assertion.h` (#78863)

...in attempt to fix the FreeBSD CI.

I noticed that suddenly some tests in the latest PRs fail to compile on
FreeBSD (`SIGILL` and `SIGTRAP` not defined). This tries to resolve
the issue.

Co-authored-by: Zingam <zingam at outlook.com>

Added: 
    

Modified: 
    libcxx/test/support/check_assertion.h

Removed: 
    


################################################################################
diff  --git a/libcxx/test/support/check_assertion.h b/libcxx/test/support/check_assertion.h
index 485f8103c7ad8d..1811df5f474f52 100644
--- a/libcxx/test/support/check_assertion.h
+++ b/libcxx/test/support/check_assertion.h
@@ -24,7 +24,9 @@
 
 #include <unistd.h>
 #include <errno.h>
+#include <signal.h>
 #include <sys/wait.h>
+
 #include "test_macros.h"
 #include "test_allocator.h"
 


        


More information about the libcxx-commits mailing list