Skip to content

Commit 201033d

Browse files
committed
avoid dependency on linux/limits.h header
it was causing a problem on the CI
1 parent 8692c6f commit 201033d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/glibc.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,6 @@ bool eql_glibc_target(const ZigTarget *a, const ZigTarget *b) {
352352

353353
#ifdef ZIG_OS_LINUX
354354
#include <unistd.h>
355-
#include <linux/limits.h>
356355
Error glibc_detect_native_version(ZigGLibCVersion *glibc_ver) {
357356
Buf *self_libc_path = get_self_libc_path();
358357
if (self_libc_path == nullptr) {
@@ -365,7 +364,7 @@ Error glibc_detect_native_version(ZigGLibCVersion *glibc_ver) {
365364
return ErrorUnknownABI;
366365
}
367366
Buf *link_name = buf_alloc();
368-
buf_resize(link_name, PATH_MAX);
367+
buf_resize(link_name, 4096);
369368
ssize_t amt = readlink(buf_ptr(self_libc_path), buf_ptr(link_name), buf_len(link_name));
370369
if (amt == -1) {
371370
return ErrorUnknownABI;

0 commit comments

Comments
 (0)