Skip to content

Conversation

fabio-d
Copy link
Contributor

@fabio-d fabio-d commented Aug 25, 2025

This fixes build failures on Fuchsia that started with #153860

This fixes build failures that started with llvm#153860
@llvmbot
Copy link
Member

llvmbot commented Aug 25, 2025

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: Fabio D'Urso (fabio-d)

Changes

This fixes build failures on Fuchsia that started with #153860


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

2 Files Affected:

  • (modified) compiler-rt/lib/gwp_asan/tests/basic.cpp (+2)
  • (modified) compiler-rt/lib/gwp_asan/tests/never_allocated.cpp (+2)
diff --git a/compiler-rt/lib/gwp_asan/tests/basic.cpp b/compiler-rt/lib/gwp_asan/tests/basic.cpp
index 7d36a2ee1f947..ec2cacc00616c 100644
--- a/compiler-rt/lib/gwp_asan/tests/basic.cpp
+++ b/compiler-rt/lib/gwp_asan/tests/basic.cpp
@@ -8,6 +8,8 @@
 
 #include "gwp_asan/tests/harness.h"
 
+#include <unistd.h>
+
 TEST_F(CustomGuardedPoolAllocator, BasicAllocation) {
   InitNumSlots(1);
   void *Ptr = GPA.allocate(1);
diff --git a/compiler-rt/lib/gwp_asan/tests/never_allocated.cpp b/compiler-rt/lib/gwp_asan/tests/never_allocated.cpp
index 37a4b384e4ac0..6e1ee47d86a53 100644
--- a/compiler-rt/lib/gwp_asan/tests/never_allocated.cpp
+++ b/compiler-rt/lib/gwp_asan/tests/never_allocated.cpp
@@ -12,6 +12,8 @@
 #include "gwp_asan/crash_handler.h"
 #include "gwp_asan/tests/harness.h"
 
+#include <unistd.h>
+
 TEST_P(BacktraceGuardedPoolAllocatorDeathTest, NeverAllocated) {
   size_t PageSize = sysconf(_SC_PAGESIZE);
 

@fabio-d fabio-d merged commit c055678 into llvm:main Aug 26, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants