From bde7ba57b06eb46f8901454e12524a74a8c3b6e8 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Fri, 8 Jun 2018 00:47:48 +0200 Subject: darwin does not have PATH_MAX Define our own, with the value from Linux. --- internal/syscallcompat/sys_common.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/syscallcompat') diff --git a/internal/syscallcompat/sys_common.go b/internal/syscallcompat/sys_common.go index 21823ef..77cdb07 100644 --- a/internal/syscallcompat/sys_common.go +++ b/internal/syscallcompat/sys_common.go @@ -6,6 +6,8 @@ import ( "golang.org/x/sys/unix" ) +const PATH_MAX = 4096 // not defined on Darwin + // Readlinkat exists both in Linux and in MacOS 10.10+. We may add an // emulated version for users on older MacOS versions if there is // demand. -- cgit v1.2.3