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

via libc-commits libc-commits at lists.llvm.org
Wed Sep 25 15:42:33 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Michael Jones (michaelrj-google)

<details>
<summary>Changes</summary>

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.


---
Full diff: https://github.com/llvm/llvm-project/pull/110057.diff


1 Files Affected:

- (modified) libc/hdr/errno_macros.h (+2-2) 


``````````diff
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

``````````

</details>


https://github.com/llvm/llvm-project/pull/110057


More information about the libc-commits mailing list