[libc-commits] [libc] [libc] Fix errno_macros.h include paths. (PR #110057)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Wed Sep 25 15:41:58 PDT 2024


https://github.com/michaelrj-google created https://github.com/llvm/llvm-project/pull/110057

The proxy header errno_macros.h should include relative to `libc/` but it
was instead including relative to `libc/include/`. This patch fixes this
by adding the `include` to the paths.


>From 9304a4a184aa3957c13e2f8ada8fc8aa3c309853 Mon Sep 17 00:00:00 2001
From: Michael Jones <michaelrj at google.com>
Date: Wed, 25 Sep 2024 15:40:01 -0700
Subject: [PATCH] [libc] Fix errno_macros.h include paths.

The proxy header errno_macros.h should include relative to `libc/` but it
was instead including relative to `libc/include/`. This patch fixes this
by adding the `include` to the paths.
---
 libc/hdr/errno_macros.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libc/hdr/errno_macros.h b/libc/hdr/errno_macros.h
index 198b5233d4409a..27ea49977d8c8e 100644
--- a/libc/hdr/errno_macros.h
+++ b/libc/hdr/errno_macros.h
@@ -14,9 +14,9 @@
 #ifdef __linux__
 #include <linux/errno.h>
 
-#include "llvm-libc-macros/error-number-macros.h"
+#include "include/llvm-libc-macros/error-number-macros.h"
 #else // __linux__
-#include "llvm-libc-macros/generic-error-number-macros.h"
+#include "include/llvm-libc-macros/generic-error-number-macros.h"
 #endif
 
 #else // Overlay mode



More information about the libc-commits mailing list