diff options
| author | Michael Jones <michaelrj@google.com> | 2023-03-02 14:01:41 -0800 |
|---|---|---|
| committer | Michael Jones <michaelrj@google.com> | 2023-03-03 11:15:36 -0800 |
| commit | 04a9c62554cf74b06bd1f7af94eefd5a0a19590d (patch) | |
| tree | 31c072d5c6741bf98f423b734e8ee7b1190bd215 /libc/src/stdio/setvbuf.cpp | |
| parent | 56e8fd6f6a841d51b0dd52bfd646403e328fbe34 (diff) | |
[libc] move stdlib and stdio to new errno pattern
Fixes https://github.com/llvm/llvm-project/issues/61071
Reviewed By: sivachandra
Differential Revision: https://reviews.llvm.org/D145191
Diffstat (limited to 'libc/src/stdio/setvbuf.cpp')
| -rw-r--r-- | libc/src/stdio/setvbuf.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/src/stdio/setvbuf.cpp b/libc/src/stdio/setvbuf.cpp index 162519fcca36..9080c55cf958 100644 --- a/libc/src/stdio/setvbuf.cpp +++ b/libc/src/stdio/setvbuf.cpp @@ -9,7 +9,7 @@ #include "src/stdio/setvbuf.h" #include "src/__support/File/file.h" -#include <errno.h> +#include "src/errno/libc_errno.h" #include <stdio.h> namespace __llvm_libc { @@ -20,7 +20,7 @@ LLVM_LIBC_FUNCTION(int, setvbuf, int err = reinterpret_cast<__llvm_libc::File *>(stream)->set_buffer(buf, size, type); if (err != 0) - errno = err; + libc_errno = err; return err; } |
