mirror of
https://github.com/ziglang/zig.git
synced 2025-12-22 06:03:16 +00:00
fix freebsd compilation
This commit is contained in:
parent
7703f4c60a
commit
06b4526a3e
@ -2998,7 +2998,7 @@ fn gimmeMoreOfThoseSweetSweetFileDescriptors() void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
lim.cur = min + (max - min) / 2;
|
lim.cur = min + @divTrunc(max - min, 2); // on freebsd rlim_t is signed
|
||||||
if (posix.setrlimit(.NOFILE, lim)) |_| {
|
if (posix.setrlimit(.NOFILE, lim)) |_| {
|
||||||
min = lim.cur;
|
min = lim.cur;
|
||||||
} else |_| {
|
} else |_| {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user