diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-08-23 02:59:46 +0200 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-09-19 18:20:21 -0700 |
| commit | 1c8f0b8909f342201f84def1efb8c6fb4386cc2c (patch) | |
| tree | b58a1488ff85440a65565474627add3fdc66b32e /lib/libcxx/src/random.cpp | |
| parent | d13bc04cb4c4c2f0806b9d9c676cb013ea888828 (diff) | |
| download | zig-1c8f0b8909f342201f84def1efb8c6fb4386cc2c.tar.gz zig-1c8f0b8909f342201f84def1efb8c6fb4386cc2c.zip | |
libcxx: Update to LLVM 19.
* Moved the tz.cpp patch to experimental/tzdb.cpp.
* Extended the __config_site patch to a few more files.
Diffstat (limited to 'lib/libcxx/src/random.cpp')
| -rw-r--r-- | lib/libcxx/src/random.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcxx/src/random.cpp b/lib/libcxx/src/random.cpp index c7073c54da..14c6f4473d 100644 --- a/lib/libcxx/src/random.cpp +++ b/lib/libcxx/src/random.cpp @@ -80,7 +80,7 @@ unsigned random_device::operator()() { while (n > 0) { ssize_t s = read(__f_, p, n); if (s == 0) - __throw_system_error(ENODATA, "random_device got EOF"); + __throw_system_error(ENOMSG, "random_device got EOF"); if (s == -1) { if (errno != EINTR) __throw_system_error(errno, "random_device got an unexpected error"); |
