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

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


Author: lntue
Date: 2024-05-13T18:31:35-04:00
New Revision: 8960078765f141c770f70629a205b3ea88cd9781

URL: https://github.com/llvm/llvm-project/commit/8960078765f141c770f70629a205b3ea88cd9781
DIFF: https://github.com/llvm/llvm-project/commit/8960078765f141c770f70629a205b3ea88cd9781.diff

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

Added: 
    

Modified: 
    libc/hdr/errno_macros.h

Removed: 
    


################################################################################
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