Skip to content

Commit

Permalink
Work around missing AT_SYMLINK_NOFOLLOW declaration for Musl.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ludwig committed Jan 18, 2021
1 parent 59912a7 commit 69444da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/vibe/core/file.d
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit 69444da

Please sign in to comment.