aboutsummaryrefslogtreecommitdiff
path: root/internal/syscallcompat/sys_common.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-06-08 00:47:48 +0200
committerJakob Unterwurzacher2018-06-08 00:47:48 +0200
commitbde7ba57b06eb46f8901454e12524a74a8c3b6e8 (patch)
tree96b1a729897fcb6df14052a199a91543cc2f8a87 /internal/syscallcompat/sys_common.go
parent5ad26495fc86527bbfe75ac6b46528d49a373676 (diff)
darwin does not have PATH_MAX
Define our own, with the value from Linux.
Diffstat (limited to 'internal/syscallcompat/sys_common.go')
-rw-r--r--internal/syscallcompat/sys_common.go2
1 files changed, 2 insertions, 0 deletions
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.