[libc-commits] [libc] [libc][errno] Include <linux/errno.h> for Linux in full build mode. (PR #92041)

via libc-commits libc-commits at lists.llvm.org
Mon May 13 15:22:13 PDT 2024


https://github.com/lntue created https://github.com/llvm/llvm-project/pull/92041

None

>From d5493b40f6016ec1c10c00e6ed1df0cc8d73f4ef Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue at google.com>
Date: Mon, 13 May 2024 18:19:50 -0400
Subject: [PATCH] [libc][errno] Include <linux/errno.h> for Linux in full build
 mode.

---
 libc/hdr/errno_macros.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libc/hdr/errno_macros.h b/libc/hdr/errno_macros.h
index b5ef7dc2a2076..198b5233d4409 100644
--- a/libc/hdr/errno_macros.h
+++ b/libc/hdr/errno_macros.h
@@ -12,6 +12,8 @@
 #ifdef LIBC_FULL_BUILD
 
 #ifdef __linux__
+#include <linux/errno.h>
+
 #include "llvm-libc-macros/error-number-macros.h"
 #else // __linux__
 #include "llvm-libc-macros/generic-error-number-macros.h"



More information about the libc-commits mailing list