[libc-commits] [libc] [libc] fix build error (PR #111271)

Job Henandez Lara via libc-commits libc-commits at lists.llvm.org
Sat Oct 5 18:41:17 PDT 2024


https://github.com/Jobhdez created https://github.com/llvm/llvm-project/pull/111271

None

>From b402bbdd04bf8459d43067d2b8d8266925073cff Mon Sep 17 00:00:00 2001
From: Job Hernandez <jobhdezlara93 at gmail.com>
Date: Sat, 5 Oct 2024 18:40:13 -0700
Subject: [PATCH] fix build error

---
 libc/src/__support/StringUtil/tables/CMakeLists.txt | 2 +-
 libc/src/__support/StringUtil/tables/stdc_errors.h  | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/libc/src/__support/StringUtil/tables/CMakeLists.txt b/libc/src/__support/StringUtil/tables/CMakeLists.txt
index ad4007f494749e..a61282048eddf8 100644
--- a/libc/src/__support/StringUtil/tables/CMakeLists.txt
+++ b/libc/src/__support/StringUtil/tables/CMakeLists.txt
@@ -3,7 +3,7 @@ add_header_library(
   HDRS
     stdc_errors.h
   DEPENDS
-    libc.src.errno.errno
+    libc.hdr.errno_macros
     libc.src.__support.StringUtil.message_mapper
 )
 
diff --git a/libc/src/__support/StringUtil/tables/stdc_errors.h b/libc/src/__support/StringUtil/tables/stdc_errors.h
index b2a0d36a53637c..a326616f20ef52 100644
--- a/libc/src/__support/StringUtil/tables/stdc_errors.h
+++ b/libc/src/__support/StringUtil/tables/stdc_errors.h
@@ -9,6 +9,7 @@
 #ifndef LLVM_LIBC_SRC___SUPPORT_STRINGUTIL_TABLES_STDC_ERRORS_H
 #define LLVM_LIBC_SRC___SUPPORT_STRINGUTIL_TABLES_STDC_ERRORS_H
 
+#include "hdr/errno_macros.h"
 #include "src/__support/StringUtil/message_mapper.h"
 #include "src/__support/macros/config.h"
 



More information about the libc-commits mailing list