mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-06 15:13:51 +02:00
corecollector: fix build with libphobos 2.101
This commit is contained in:
parent
48eba3e234
commit
5806e43df2
1 changed files with 14 additions and 0 deletions
14
srcpkgs/corecollector/patches/fix-build-phobos-2-101.patch
Normal file
14
srcpkgs/corecollector/patches/fix-build-phobos-2-101.patch
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue