aboutsummaryrefslogtreecommitdiff
path: root/libc/include
diff options
context:
space:
mode:
authorMichael Jones <michaelrj@google.com>2024-07-09 16:17:02 -0700
committerGitHub <noreply@github.com>2024-07-09 16:17:02 -0700
commit240ec5a37517f55a64cd0c69fd4fa1613ab30f97 (patch)
treeba3dee21c65bf7bac57ed42b232bfc75da4b1442 /libc/include
parent6b8453732b9129299170f7c3ef574ff219790fc5 (diff)
downloadllvm-240ec5a37517f55a64cd0c69fd4fa1613ab30f97.zip
llvm-240ec5a37517f55a64cd0c69fd4fa1613ab30f97.tar.gz
llvm-240ec5a37517f55a64cd0c69fd4fa1613ab30f97.tar.bz2
[libc] Move off_t and stdio macros to proxy hdrs (#98215)
The arm32 build has been failing due to redefinitions of the off_t type. This patch fixes this by moving off_t to a proper proxy header. To do this, it also moves stdio macros to a proxy header to hopefully avoid including this proxy header alongside this public stdio.h.
Diffstat (limited to 'libc/include')
-rw-r--r--libc/include/llvm-libc-macros/stdio-macros.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/include/llvm-libc-macros/stdio-macros.h b/libc/include/llvm-libc-macros/stdio-macros.h
index 4664801..69fb71a 100644
--- a/libc/include/llvm-libc-macros/stdio-macros.h
+++ b/libc/include/llvm-libc-macros/stdio-macros.h
@@ -15,4 +15,8 @@
#define BUFSIZ 1024
+#define _IONBF 2
+#define _IOLBF 1
+#define _IOFBF 0
+
#endif // LLVM_LIBC_MACROS_STDIO_MACROS_H