[libc-commits] [libc] 544e6c6 - [libc] Add missing errno_macros.h include to pthread schedparam (#191235)
via libc-commits
libc-commits at lists.llvm.org
Thu Apr 9 09:57:49 PDT 2026
Author: Jeff Bailey
Date: 2026-04-09T17:57:45+01:00
New Revision: 544e6c692aa79cc8d53a8a9db4d41fe4d9cb359b
URL: https://github.com/llvm/llvm-project/commit/544e6c692aa79cc8d53a8a9db4d41fe4d9cb359b
DIFF: https://github.com/llvm/llvm-project/commit/544e6c692aa79cc8d53a8a9db4d41fe4d9cb359b.diff
LOG: [libc] Add missing errno_macros.h include to pthread schedparam (#191235)
Both pthread_attr_getschedparam and pthread_attr_setschedparam use
ENOTSUP but relied on getting it transitively through <pthread.h>. Added
the explicit include so these files compile in standalone builds with
-nostdinc.
Added:
Modified:
libc/src/pthread/pthread_attr_getschedparam.cpp
libc/src/pthread/pthread_attr_setschedparam.cpp
Removed:
################################################################################
diff --git a/libc/src/pthread/pthread_attr_getschedparam.cpp b/libc/src/pthread/pthread_attr_getschedparam.cpp
index 5219c4a75c862..51fddea672af0 100644
--- a/libc/src/pthread/pthread_attr_getschedparam.cpp
+++ b/libc/src/pthread/pthread_attr_getschedparam.cpp
@@ -11,6 +11,7 @@
#include "src/__support/common.h"
#include "src/__support/macros/config.h"
+#include "hdr/errno_macros.h"
#include <pthread.h>
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/pthread/pthread_attr_setschedparam.cpp b/libc/src/pthread/pthread_attr_setschedparam.cpp
index 1a80f0bd48d24..76b2e5177676c 100644
--- a/libc/src/pthread/pthread_attr_setschedparam.cpp
+++ b/libc/src/pthread/pthread_attr_setschedparam.cpp
@@ -11,6 +11,7 @@
#include "src/__support/common.h"
#include "src/__support/macros/config.h"
+#include "hdr/errno_macros.h"
#include <pthread.h>
namespace LIBC_NAMESPACE_DECL {
More information about the libc-commits
mailing list