We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8692c6f commit 201033dCopy full SHA for 201033d
src/glibc.cpp
@@ -352,7 +352,6 @@ bool eql_glibc_target(const ZigTarget *a, const ZigTarget *b) {
352
353
#ifdef ZIG_OS_LINUX
354
#include <unistd.h>
355
-#include <linux/limits.h>
356
Error glibc_detect_native_version(ZigGLibCVersion *glibc_ver) {
357
Buf *self_libc_path = get_self_libc_path();
358
if (self_libc_path == nullptr) {
@@ -365,7 +364,7 @@ Error glibc_detect_native_version(ZigGLibCVersion *glibc_ver) {
365
364
return ErrorUnknownABI;
366
}
367
Buf *link_name = buf_alloc();
368
- buf_resize(link_name, PATH_MAX);
+ buf_resize(link_name, 4096);
369
ssize_t amt = readlink(buf_ptr(self_libc_path), buf_ptr(link_name), buf_len(link_name));
370
if (amt == -1) {
371
0 commit comments