karheinz/pird — Issue #5: Compiling on a Mac
Author: jdobber
Created: 2012-01-24 06:55:45+00:00
State: open

With this patch it compiles on my Mac.

diff --git a/Makefile b/Makefile
index 4ce5626..1cdcf3b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
pird: Makefile *.d c/cdio/*.d readers/*.d writers/*.d sources/*.d usages/*.txt
dmd *.d c/cdio/*.d readers/*.d writers/*.d sources/*.d -ofpird \
-	-L-lcdio -L-lcdio_cdda -L-lcdio_paranoia -Jusages \
+	-L-L/opt/local/lib -L-lcdio -L-lcdio_cdda -L-lcdio_paranoia -Jusages \
-w \
-version=devel

diff --git a/commands.d b/commands.d
index 29b2482..83549a2 100644
--- a/commands.d
+++ b/commands.d
@@ -26,6 +26,8 @@ import std.stdio;
import std.string;
import std.variant;

+import core.vararg;
+
import c.cdio.logging;

static import introspection;
diff --git a/utils.d b/utils.d
index 5e9261d..c20aafa 100644
--- a/utils.d
+++ b/utils.d
@@ -34,7 +34,7 @@ import c.cdio.types;
T bufferTo( T )( char[] buffer )
{
char[] tmp;
- int length;
+ ulong length;

length = strlen( cast( char* )buffer );
tmp.length = length;