[libc-commits] [libc] a8612a9 - [libc] Add self-define for sigev_notify_thread_id field. (#219067)
via libc-commits
libc-commits at lists.llvm.org
Thu Aug 27 07:51:22 PDT 2026
Author: Alexey Samsonov
Date: 2026-08-27T07:51:16-07:00
New Revision: a8612a9cfc54ccbf22722a7ba4c7ecf3768a6002
URL: https://github.com/llvm/llvm-project/commit/a8612a9cfc54ccbf22722a7ba4c7ecf3768a6002
DIFF: https://github.com/llvm/llvm-project/commit/a8612a9cfc54ccbf22722a7ba4c7ecf3768a6002.diff
LOG: [libc] Add self-define for sigev_notify_thread_id field. (#219067)
Support downstream code that assumes `sigev_notify_thread_id`, even
though defined for Linux is a macro that expands to use private `struct
sigevent` fields.
Added:
Modified:
libc/include/llvm-libc-types/struct_sigevent.h
Removed:
################################################################################
diff --git a/libc/include/llvm-libc-types/struct_sigevent.h b/libc/include/llvm-libc-types/struct_sigevent.h
index 1813d5d818a38..fb394da129a6b 100644
--- a/libc/include/llvm-libc-types/struct_sigevent.h
+++ b/libc/include/llvm-libc-types/struct_sigevent.h
@@ -30,4 +30,7 @@ struct sigevent {
#endif
};
+// Self-define for compatibility with code assuming a macro.
+#define sigev_notify_thread_id sigev_notify_thread_id
+
#endif // LLVM_LIBC_TYPES_STRUCT_SIGEVENT_H
More information about the libc-commits
mailing list