https://github.com/atetubou created 
https://github.com/llvm/llvm-project/pull/139496

This is to fix Clang module build in chromium.

>From d0e83133ff408270adb1e477f1b32e2e39a469c4 Mon Sep 17 00:00:00 2001
From: Takuto Ikuta <tik...@google.com>
Date: Mon, 12 May 2025 14:36:35 +0900
Subject: [PATCH] [clang] Include <stddef.h> for size_t

This is to fix Clang module build in chromium.
---
 clang/lib/Headers/mm_malloc.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/clang/lib/Headers/mm_malloc.h b/clang/lib/Headers/mm_malloc.h
index d32fe59416277..dec91fc3f720a 100644
--- a/clang/lib/Headers/mm_malloc.h
+++ b/clang/lib/Headers/mm_malloc.h
@@ -15,6 +15,8 @@
 #ifdef _WIN32
 #include <malloc.h>
 #else
+#include <stddef.h>
+
 #ifndef __cplusplus
 extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size);
 #else

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to