[libc-commits] [libc] 2afc562 - [libc] add stdlib.h header to the _Exit func proxy in full build (#114718)

via libc-commits libc-commits at lists.llvm.org
Sun Nov 3 13:40:49 PST 2024


Author: Job Henandez Lara
Date: 2024-11-03T13:40:45-08:00
New Revision: 2afc562d5d3bbe1b08cad486bc1cf1b078aba584

URL: https://github.com/llvm/llvm-project/commit/2afc562d5d3bbe1b08cad486bc1cf1b078aba584
DIFF: https://github.com/llvm/llvm-project/commit/2afc562d5d3bbe1b08cad486bc1cf1b078aba584.diff

LOG: [libc] add stdlib.h header to the _Exit func proxy in full build (#114718)

Added: 
    

Modified: 
    libc/hdr/func/_Exit.h

Removed: 
    


################################################################################
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