Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 5, 2024
Merged

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

merged 1 commit into from
Nov 5, 2024

Conversation

nico
Copy link
Contributor

@nico nico commented Nov 5, 2024

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

Similar to #113951.

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

Similar to llvm#113951.
@llvmbot
Copy link
Member

llvmbot commented Nov 5, 2024

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

Author: Nico Weber (nico)

Changes

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

Similar to #113951.


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

1 Files Affected:

  • (modified) compiler-rt/lib/fuzzer/FuzzerExtFunctionsWindows.cpp (+1)
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;
 

@nico nico merged commit a6fdfef into llvm:main Nov 5, 2024
9 of 10 checks passed
@nico nico deleted the fuzzexit branch November 5, 2024 17:30
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