[libc-commits] [libc] [libc][sched] Fix cpuset includes (PR #126303)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Fri Feb 7 13:22:14 PST 2025


================
@@ -0,0 +1,22 @@
+//===-- Proxy for cpu_set_t -----------------------------------------------===//
+//
+// 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_TYPES_CPU_SET_T_H
+#define LLVM_LIBC_HDR_TYPES_CPU_SET_T_H
+
+#ifdef LIBC_FULL_BUILD
+
+#include "include/llvm-libc-types/cpu_set_t.h"
+
+#else // Overlay mode
+
+#include <sched.h>
+
+#endif // LLVM_LIBC_FULL_BUILD
+
+#endif // LLVM_LIBC_HDR_TYPES_CPU_SET_T_H
----------------
nickdesaulniers wrote:

This new file will need to be wired up to the build system. Needs an addition to CMakeLists.txt in the same dir.

https://github.com/llvm/llvm-project/pull/126303


More information about the libc-commits mailing list