[compiler-rt] [compiler-rt] Include stdlib.h for exit() (PR #115025)

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 5 09:10:37 PST 2024


https://github.com/nico created https://github.com/llvm/llvm-project/pull/115025

It was originally included transitively, but no longer is after recent <vector> cleanups in libc++.

Similar to #113951.

>From eddd7475c30f2699df6ae096c50406f5b6065e13 Mon Sep 17 00:00:00 2001
From: Nico Weber <thakis at chromium.org>
Date: Tue, 5 Nov 2024 12:09:02 -0500
Subject: [PATCH] [compiler-rt] Include stdlib.h for exit()

It was originally included transitively, but no longer is after
recent <vector> cleanups in libc++.

Similar to #113951.
---
 compiler-rt/lib/fuzzer/FuzzerExtFunctionsWindows.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/compiler-rt/lib/fuzzer/FuzzerExtFunctionsWindows.cpp b/compiler-rt/lib/fuzzer/FuzzerExtFunctionsWindows.cpp
index dfc32ac9db2979..566820ae6d198b 100644
--- a/compiler-rt/lib/fuzzer/FuzzerExtFunctionsWindows.cpp
+++ b/compiler-rt/lib/fuzzer/FuzzerExtFunctionsWindows.cpp
@@ -14,6 +14,7 @@
 
 #include "FuzzerExtFunctions.h"
 #include "FuzzerIO.h"
+#include <stdlib.h>
 
 using namespace fuzzer;
 



More information about the llvm-commits mailing list