Skip to content

Commit

Permalink
corecollector: fix build with libphobos 2.101
Browse files Browse the repository at this point in the history
  • Loading branch information
oreo639 committed Dec 18, 2022
1 parent a68eede commit 7f721f7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions srcpkgs/corecollector/patches/fix-phobos-2-101.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- a/source/corecollector/logging.d
+++ b/source/corecollector/logging.d
@@ -93,7 +93,10 @@ auto toSyslogLevel(LogLevel lv) @safe
/// Setup the logging with the supplied logging level.
void setupLogging(const LogLevel l, File logFile) @safe
{
- sharedLog = new SyslogLogger(l, logFile);
+ static if (__VERSION__ < 2101)
+ sharedLog = new SyslogLogger(l, logFile);
+ else
+ sharedLog = (() @trusted => cast(shared) new SyslogLogger(l, logFile))();
}

@safe unittest

0 comments on commit 7f721f7

Please sign in to comment.