[libc-commits] [compiler-rt] [libc] [libc][sched] Implement proxy headers for `cpu_set_t`, `struct sched_param` and `sched_macros`. (PR #126303)
via libc-commits
libc-commits at lists.llvm.org
Tue Feb 18 20:26:55 PST 2025
================
@@ -0,0 +1,27 @@
+//===-- Definition of macros from sched.h ---------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_HDR_SCHED_MACROS_H
+#define LLVM_LIBC_HDR_SCHED_MACROS_H
+
+#ifdef LIBC_FULL_BUILD
+
+#ifndef _SCHED_H
----------------
lntue wrote:
If for some reason, the system's `usr/include/sched.h` and `libc/hdr/sched_macros.h` are included in the same translation unit, we need to do one of the following options:
1. Fulfilling our `sched.h` related headers to be complete enough so that `usr/include/sched.h` is not needed anymore in full build mode
2. Update our implementations/tests so that `usr/include/sched.h` is not needed anymore in full build mode
Let me know if you need help tracing back to how all of those inclusion conflicts are happening.
https://github.com/llvm/llvm-project/pull/126303
More information about the libc-commits
mailing list