Issue |
126287
|
Summary |
[libc][sched] Fix includes of `libc/include/llvm-libc-types/sched.h`
|
Labels |
libc
|
Assignees |
|
Reporter |
krishna2803
|
The files using `cpu_set_t` import it incorrectly. For example:
```cpp
// libc/src/sched/linux/sched_getcpucount.cpp
...
#include "src/sched/sched_getcpucount.h"
#include "src/__support/common.h"
#include "src/__support/macros/config.h"
#include <sched.h>
#include <stddef.h>
//...
```
should include
`"libc/include/llvm-libc/types/cpu_set_t.h"` instead of `<sched.h>`. Currently, this results in the type being imported from the local libc (likely glibc) that creates issues.
This should be fixed before #124642
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs