[libc-commits] [libc] [libc] add stdlib.h header to the _Exit func proxy in full build (PR #114718)
Job Henandez Lara via libc-commits
libc-commits at lists.llvm.org
Sun Nov 3 13:36:44 PST 2024
https://github.com/Jobhdez created https://github.com/llvm/llvm-project/pull/114718
None
>From cb0db43785c835e34e425c332864032d4376579c Mon Sep 17 00:00:00 2001
From: Job Hernandez <jobhdezlara93 at gmail.com>
Date: Sun, 3 Nov 2024 13:35:01 -0800
Subject: [PATCH] add stdlib.h header if its full build mode
---
libc/hdr/func/_Exit.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libc/hdr/func/_Exit.h b/libc/hdr/func/_Exit.h
index 575b0426e508c6..e024a651a50bcf 100644
--- a/libc/hdr/func/_Exit.h
+++ b/libc/hdr/func/_Exit.h
@@ -10,7 +10,8 @@
#define LLVM_LIBC_HDR_FUNC_EXIT_H
#ifdef LIBC_FULL_BUILD
-extern "C" void _Exit(int);
+// We will use the `_Exit` declaration from our generated stdlib.h
+#include <stdlib.h>
#else // Overlay mode
More information about the libc-commits
mailing list