aboutsummaryrefslogtreecommitdiff
path: root/libc/include
diff options
context:
space:
mode:
authorJoseph Huber <huberjn@outlook.com>2024-07-16 16:17:01 -0500
committerGitHub <noreply@github.com>2024-07-16 16:17:01 -0500
commitf7cee44ef2a2bf62f3c939d5686c45c71f3b14bc (patch)
treeaff598dcc1e4d1f5e1803e06297cb54ce029fb3c /libc/include
parent434c2382f11e21b0c7ad2fda8ae66cd65c471463 (diff)
downloadllvm-f7cee44ef2a2bf62f3c939d5686c45c71f3b14bc.zip
llvm-f7cee44ef2a2bf62f3c939d5686c45c71f3b14bc.tar.gz
llvm-f7cee44ef2a2bf62f3c939d5686c45c71f3b14bc.tar.bz2
[libc] Add `strerror` and `strerror_k` to the GPU (#99083)
Summary: The GPU ignores `errno` primarily, but targets want these functions to be defined for certain C standard interfaces. This patch enables them and makes the test function on non-Linux targets.
Diffstat (limited to 'libc/include')
-rw-r--r--libc/include/llvm-libc-macros/generic-error-number-macros.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/include/llvm-libc-macros/generic-error-number-macros.h b/libc/include/llvm-libc-macros/generic-error-number-macros.h
index 59b121e..199a862 100644
--- a/libc/include/llvm-libc-macros/generic-error-number-macros.h
+++ b/libc/include/llvm-libc-macros/generic-error-number-macros.h
@@ -43,5 +43,6 @@
#define EPIPE 32
#define EDOM 33
#define ERANGE 34
+#define EILSEQ 84
#endif // LLVM_LIBC_MACROS_GENERIC_ERROR_NUMBER_MACROS_H