From 69444da9a3637635ecd0b647b8ff6a8c37b81470 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Mon, 18 Jan 2021 13:45:12 +0100 Subject: [PATCH] Work around missing AT_SYMLINK_NOFOLLOW declaration for Musl. --- source/vibe/core/file.d | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/vibe/core/file.d b/source/vibe/core/file.d index a403d19..50059bc 100644 --- a/source/vibe/core/file.d +++ b/source/vibe/core/file.d @@ -1122,6 +1122,11 @@ version (Posix) { static if (!is(typeof(AT_SYMLINK_NOFOLLOW))) enum AT_SYMLINK_NOFOLLOW = 0x0020; } + + version (CRuntime_Musl) { + static if (!is(typeof(AT_SYMLINK_NOFOLLOW))) + enum AT_SYMLINK_NOFOLLOW = 0x0100; + } } private immutable TaskSettings ioTaskSettings = { priority: 20 * Task.basePriority };