summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorJoseph Huber <jhuber6@vols.utk.edu>2023-04-25 13:32:17 -0500
committerJoseph Huber <jhuber6@vols.utk.edu>2023-04-25 13:32:17 -0500
commit95dc29a0568f5039d79d5b5a8ce92d0aca9d6ac1 (patch)
treed0ccb8465cdf141d3f3119885f01277f8861d631 /libc
parent16c2a906b854e31d8b3d05d8478bd0f60388e68c (diff)
downloadllvm-95dc29a0568f5039d79d5b5a8ce92d0aca9d6ac1.tar.gz
[libc] Fix including 'libc_errno.h' incorrectly
Summary: This causes problems when included. Fix this to hopefully get the bots working again.
Diffstat (limited to 'libc')
-rw-r--r--libc/src/errno/libc_errno.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/libc/src/errno/libc_errno.cpp b/libc/src/errno/libc_errno.cpp
index 8cf77a8f202c..a52e3afbbf1a 100644
--- a/libc/src/errno/libc_errno.cpp
+++ b/libc/src/errno/libc_errno.cpp
@@ -7,10 +7,15 @@
//===----------------------------------------------------------------------===//
#include "src/__support/macros/properties/architectures.h"
-#include "libc_errno.h"
namespace __llvm_libc {
+#ifdef LIBC_TARGET_ARCH_IS_GPU
+struct ErrnoConsumer {
+ void operator=(int) {}
+};
+#endif
+
extern "C" {
#ifdef LIBC_COPT_PUBLIC_PACKAGING
// TODO: Declare __llvmlibc_errno only under LIBC_COPT_PUBLIC_PACKAGING and