summaryrefslogtreecommitdiff
path: root/libc/src/__support/File/file.cpp
diff options
context:
space:
mode:
authorJob Henandez Lara <jobhdezlara93@gmail.com>2024-11-03 11:28:24 -0800
committerGitHub <noreply@github.com>2024-11-03 11:28:24 -0800
commit9cfe3028ca7977fb582fa3b15b875e8772fc8fc0 (patch)
tree1aa30b9751e022ad8315204207f12b3fd739e95a /libc/src/__support/File/file.cpp
parent5b32c5954b1d00435a2264f8d1bd1fd9db9cb022 (diff)
[libc] Add proxy headers to handle memory allocation associated with the header `#include <stdlib.h> (#114690)
This finishes the work from https://github.com/llvm/llvm-project/pull/114453 by adding proxy headers for `malloc`, `realloc`, `free` and `aligned_alloc`.
Diffstat (limited to 'libc/src/__support/File/file.cpp')
-rw-r--r--libc/src/__support/File/file.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/src/__support/File/file.cpp b/libc/src/__support/File/file.cpp
index 51811a27c1ac..972249fef96b 100644
--- a/libc/src/__support/File/file.cpp
+++ b/libc/src/__support/File/file.cpp
@@ -8,6 +8,7 @@
#include "file.h"
+#include "hdr/func/realloc.h"
#include "hdr/stdio_macros.h"
#include "hdr/types/off_t.h"
#include "src/__support/CPP/new.h"