--- ../dvd+rw-tools-7.0-orig/growisofs.c	2006-09-25 02:28:53 +0900
+++ growisofs.c	2007-12-24 14:16:18 +0900
@@ -415,6 +415,7 @@
 #include <time.h>
 #include <string.h>
 #include <fcntl.h>
+#include <limits.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <assert.h>
--- ../dvd+rw-tools-7.0-orig/transport.hxx	2006-09-23 20:29:07 +0900
+++ transport.hxx	2007-02-27 07:54:25 +0900
@@ -14,6 +14,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
+#include <limits.h>
 #include <poll.h>
 #include <sys/time.h>
 
@@ -284,9 +285,9 @@
 #if !KERNEL_BROKEN
 		if (sg_io.masked_status&CHECK_CONDITION)
 #endif
-		{   ret = ERRCODE(sg_io.sbp);
+		{   ret = ERRCODE((unsigned char *)sg_io.sbp);
 		    if (ret==0) ret=-1;
-		    else	CREAM_ON_ERRNO(sg_io.sbp);
+		    else	CREAM_ON_ERRNO((unsigned char *)sg_io.sbp);
 		}
 	    }
 	    return ret;
