[libc-commits] [libc] b29bfa5 - [libc][NFC] Fix GCC build in __futex_word.h (#192078)
via libc-commits
libc-commits at lists.llvm.org
Tue Apr 14 10:07:35 PDT 2026
Author: Jeff Bailey
Date: 2026-04-14T18:07:29+01:00
New Revision: b29bfa5e9b2b1cd395566759f5f0f27cb706fe94
URL: https://github.com/llvm/llvm-project/commit/b29bfa5e9b2b1cd395566759f5f0f27cb706fe94
DIFF: https://github.com/llvm/llvm-project/commit/b29bfa5e9b2b1cd395566759f5f0f27cb706fe94.diff
LOG: [libc][NFC] Fix GCC build in __futex_word.h (#192078)
Included __llvm-libc-common.h in __futex_word.h to fix a build failure
with GCC.
GCC in C++ mode does not recognize _Alignas without the mapping to
alignas provided in __llvm-libc-common.h.
The failure was introduced in commit 91c0fdfe1392.
Added:
Modified:
libc/include/llvm-libc-types/__futex_word.h
Removed:
################################################################################
diff --git a/libc/include/llvm-libc-types/__futex_word.h b/libc/include/llvm-libc-types/__futex_word.h
index 04023c7e2d5ff..302984a8867dd 100644
--- a/libc/include/llvm-libc-types/__futex_word.h
+++ b/libc/include/llvm-libc-types/__futex_word.h
@@ -9,6 +9,8 @@
#ifndef LLVM_LIBC_TYPES___FUTEX_WORD_H
#define LLVM_LIBC_TYPES___FUTEX_WORD_H
+#include "__llvm-libc-common.h"
+
typedef struct {
// Futex word should be aligned appropriately to allow target atomic
// instructions. This declaration mimics the internal setup.
More information about the libc-commits
mailing list