From 201033d83b80d65380aaade37b76eafa17258f16 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 8 Jul 2019 11:38:14 -0400 Subject: [PATCH] avoid dependency on linux/limits.h header it was causing a problem on the CI --- src/glibc.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/glibc.cpp b/src/glibc.cpp index bf78d18e1..d7ae47ed7 100644 --- a/src/glibc.cpp +++ b/src/glibc.cpp @@ -352,7 +352,6 @@ bool eql_glibc_target(const ZigTarget *a, const ZigTarget *b) { #ifdef ZIG_OS_LINUX #include -#include Error glibc_detect_native_version(ZigGLibCVersion *glibc_ver) { Buf *self_libc_path = get_self_libc_path(); if (self_libc_path == nullptr) { @@ -365,7 +364,7 @@ Error glibc_detect_native_version(ZigGLibCVersion *glibc_ver) { return ErrorUnknownABI; } Buf *link_name = buf_alloc(); - buf_resize(link_name, PATH_MAX); + buf_resize(link_name, 4096); ssize_t amt = readlink(buf_ptr(self_libc_path), buf_ptr(link_name), buf_len(link_name)); if (amt == -1) { return ErrorUnknownABI;